QToolBar Icons not loaded properly.
Bug #1306472 reported by
Giles Bathgate
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
appmenu-qt5 |
Fix Released
|
High
|
Łukasz Zemczak | ||
appmenu-qt5 (Ubuntu) |
Fix Released
|
Undecided
|
Łukasz Zemczak |
Bug Description
When using a QToolBar with a basic Qt application, the icons can be populated from a theme. Either using QIcon::FromTheme(), or setting them in the associated action using the forms designer in Qt. (The name given for the icon is the freedesktop.org standard naming convention)
Under appmenu-qt5 these icons do not appear to be being loaded correctly, resulting in a toolbar populated with just the action text.
A minimal example illustrates the problem here: https:/
Related branches
lp://staging/~sil2100/appmenu-qt5/workaround_1306472_icontheme
- Timo Jyrinki: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 96 lines (+43/-1)3 files modifieddebian/control (+1/-0)
src/appmenuplatformmenubar.cpp (+41/-0)
src/src.pro (+1/-1)
Changed in appmenu-qt5: | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
importance: | Undecided → Medium |
importance: | Medium → High |
status: | New → In Progress |
Changed in appmenu-qt5: | |
status: | Incomplete → In Progress |
Changed in appmenu-qt5: | |
status: | In Progress → Fix Released |
Changed in appmenu-qt5 (Ubuntu): | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
To post a comment you must log in.
Prognosis: My understanding is that appmenu-qt5 is not reporting an IconThemeName. The QIconLoader needs this to figure out which icon set to load. If the IconThemeName is blank it falls back to a different ion theme, and if this fails it falls back to just no icons.
When using:
QIcon::themeName();
With QT_QPA_ PLATFORMTHEME set, the function would return blank, but with it unset it would return "ubuntu-mono-dark"