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

QProxyStyle chooses a wrong base style when the app style is set by QT_STYLE_OVERRIDE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.1
    • Labels:
      None
    • Commits:
      4d10e55d4d666f5557a51d43a1bd4b1f172829ac

      Description

      1) Inherit your own style from QProxyStyle and don't override painting
      2) Set this style for a widget
      3) Run you app with QT_STYLE_OVERRIDE=windows
      4) The widget will be painted in the default style (Fusion) instead of Windows style
      But if you run your app with -style windows, then everything will be ok.

        Attachments

        1. qtbug52596.zip
          2 kB
        2. wrong_style.png
          wrong_style.png
          9 kB
        For Gerrit Dashboard: QTBUG-52596
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            avolkov Alexander Volkov
            Reporter:
            avolkov Alexander Volkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes