Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135785

Windows Vista/11 style does not use correct font for mdi menu entries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8
    • Widgets: Styles
    • Windows

    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

        1. image-2025-04-07-19-53-16-319.png
          6 kB
          Christian Ehrlicher
        2. image-2025-04-07-19-55-56-872.png
          5 kB
          Christian Ehrlicher
        3. screenshot-1.png
          5 kB
          Christian Ehrlicher
        4. screenshot-2.png
          9 kB
          Christian Ehrlicher
        For Gerrit Dashboard: QTBUG-135785
        # Subject Branch Project Status CR V

        Activity

          People

            chehrlic Christian Ehrlicher
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews