[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: How to find enum's in PyQt6?
From:       Barry <barry () barrys-emacs ! org>
Date:       2022-07-11 7:39:35
Message-ID: D9C42514-9CB8-4BFC-AB67-23291BBAF3B0 () barrys-emacs ! org
[Download RAW message or body]


> On 10 Jul 2022, at 13:11, Florian Bruhin <me@the-compiler.org> wrote:
> 
> On Sun, Jul 10, 2022 at 12:13:28PM +0100, Barry Scott wrote:
>> But I'm still none the wiser how to fix this:
>> 
>>    def _addMenu( self, menu, name, handler, enabler=None, icon_name=None,
>> checker=None, group=None, role=QtWidgets
>> .QAction.MenuRole.NoRole ):
>> AttributeError: module 'PyQt6.QtWidgets' has no attribute 'QAction'
>> 
>> I am using the KDE build of Qt6/PyQt6 for Fedora copr that is version 6.2.3.
>> 
>> Is this a problem with this being an older version?
> 
> That's not really an enum-specific issue - just that QAction got moved
> from QtWidgets to QtGui in Qt 6:
> 
> https://doc.qt.io/qt-6/widgets-changes-qt6.html#qaction-qactiongroup
> 
> Also see:
> 
> https://doc.qt.io/qt-6/qaction.html ("qmake: QT += gui") vs.
> https://doc.qt.io/qt-5/qaction.html ("qmake: QT += widgets")
> 
> Here is the full list of changes per module:
> https://doc.qt.io/qt-6/modulechanges.html
> 
> I'd recommend giving that a skim for all the modules you use in your
> appliaction.

Thanks Detlev for the specific info and to you Florian for the resources.

I am making good progress.

Barry

> 
> Florian
> 
> -- 
>            me@the-compiler.org | https://www.qutebrowser.org 
>       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
>       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>             I love long mails! | https://email.is-not-s.ms/

["signature.asc;" (application/octet-stream)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic