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

windowsvista style: menus are broken

    XMLWordPrintable

Details

    • Windows
    • 3de6d6fd3 (dev), b33e0eac9 (6.8)

    Description

      The menus are now transparent when using the windowsvista style.

      This is very inconvenient, because this also breaks older custom stylesheets in dark mode, as you have to set the windowsvista style in order to get rid of the automatic dark mode palette that the new windows11 style now adds.

      You can recreate this by using e.g. the camera example in the qt creator and setting the windowsvista style:

       

      // Copyright (C) 2017 The Qt Company Ltd.
      // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
      #include "camera.h"
      #include <QApplication>
      #include <QStyle>
      #include <QStyleFactory>
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          Camera camera;
          camera.show();
          if (QStyle* style = QStyleFactory::create("windowsvista"))
          {
              app.setStyle(style);
          }
          return app.exec();
      };
      

       

      Attachments

        1. image-2024-05-20-11-53-26-512.png
          187 kB
          Patrick Waldner
        2. image-2024-05-20-11-57-39-900.png
          144 kB
          Patrick Waldner

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              wladimir.leuschner Wladimir Leuschner
              megamouse Patrick Waldner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes