pyuic6 can't handle ThemeIcon enum
Phil Thompson
phil at riverbankcomputing.com
Fri Apr 11 15:03:28 BST 2025
On 10/04/2025 18:29, JakobDev wrote:
> Hi,
>
> pyuic6 can't handle the ThemeIcon enum from QIcon.
>
> I have attached 2 files: A ui file which contains a button with a save
> icon and the compiled Python file.
>
> As you can see, the compiled Python file contains this line:
>
> icon = QtGui.QIcon.fromTheme("QIcon::ThemeIcon::DocumentSave")
>
> which causes the button to not have an icon. The correct line would be:
>
> icon = QtGui.QIcon.fromTheme(QtGui.QIcon.ThemeIcon.DocumentSave)
Should be fixed in the next snapshot.
Thanks,
Phil
More information about the PyQt
mailing list