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(); }