Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.4, 6.3.0
-
None
-
Windows 10
macOS 12.3.1
-
-
fce525fc78 (qt/qtdeclarative/dev) fce525fc78 (qt/tqtc-qtdeclarative/dev) 3b1d3f2d41 (qt/qtdeclarative/6.3) 3b1d3f2d41 (qt/tqtc-qtdeclarative/6.3) 521fbbfd9e (qt/tqtc-qtdeclarative/6.2)
Description
Qt.labs.platform Menu does not show icons.
import QtQuick import QtQuick.Window import Qt.labs.platform as Platform Window { visible: true Platform.Menu { id: menu Platform.MenuItem { text: 'Smile!' icon.source: 'qrc:/smile.png' } } TapHandler { acceptedButtons: Qt.RightButton onTapped: menu.open() } }
Reproduced at least on Windows and macOS
See full example in attachments.
Steps to reproduce:
1. Build and run attached project
2. Right click in any place of Window
3. Observe the menu
Attachments
Issue Links
- relates to
-
QTBUG-77404 QML Qt.labs.platform Menu does not show icons on Linux (KDE Plasma)
- Open
-
QTBUG-123389 Platform menu icon gets corrupted when changing screen scale factor
- Reported
For Gerrit Dashboard: QTBUG-103017 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
408796,3 | labs.platform: fix displaying of icons in platform Menu | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409031,2 | labs.platform: fix displaying of icons in platform Menu | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409034,2 | labs.platform: fix displaying of icons in platform Menu | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |