Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8
Description
The mdi subwindow menu entries do not use the correct icons in contrast to the mdi menubar:
Using QFontIconEngine directly has some drawbacks:
- the palette from the widget is not used
- the text is drawn too large (compare the 'x' from the menubar with the menu entry):
Here with a scale factor of 0.7:
Small reproducer:
int main(int argc, char* argv[]) { QApplication app(argc, argv); QMainWindow mw; auto area = new QMdiArea; auto sw = new QMdiSubWindow; sw->setWindowTitle("SubWindow"); area->addSubWindow(sw); mw.setCentralWidget(area); mw.addDockWidget(Qt::LeftDockWidgetArea, new QDockWidget("DockWidget")); mw.show(); return app.exec(); }
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-135785 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
613760,17 | WindowsVistaStyle: use custom icon engine | dev | qt/qtbase | Status: NEW | +1 | 0 |
613761,13 | Windows11Style: reset mdi icons on polish | dev | qt/qtbase | Status: NEW | +2 | 0 |
614132,11 | Windows11Style: use assetFont from WindowsVistaPrivate | dev | qt/qtbase | Status: NEW | 0 | 0 |