I have the issue that icons that I add by adding a QAction to a QToolBar, that the resulting icons are squashed, when I update from 2.8 to 2.9 (see Screenshots)
In this case, they are custom icons, but I also have the same issue, when I add PySide default icons, such as QStyle.SP_DialogSaveButton.
The issue arises when I have a widget that inherits from QToolBar, but is not added to another widget via setMenuBar, but just as any other widget. If it is a proper toolbar, the icons are displayed normally.
Running on redhat8 with PySide2==5.15.2.1
I have the issue that icons that I add by adding a QAction to a QToolBar, that the resulting icons are squashed, when I update from 2.8 to 2.9 (see Screenshots)
In this case, they are custom icons, but I also have the same issue, when I add PySide default icons, such as
QStyle.SP_DialogSaveButton
.The issue arises when I have a widget that inherits from
QToolBar
, but is not added to another widget viasetMenuBar
, but just as any other widget. If it is a proper toolbar, the icons are displayed normally.Code example for the toolbar:
The toolbar is then added like:
Due to layout reasons, I cannot use
setMenuBar
every time. Any pointers for possible reasons or fixes?