Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Style mistake in win11 with Qt 6.7+ mingw 11.2 official online release.
QtWS25 Last Chance

Style mistake in win11 with Qt 6.7+ mingw 11.2 official online release.

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goldenhawking
    wrote on 13 Apr 2024, 11:44 last edited by goldenhawking
    #1

    This problem is discovered first in msys2, because in msys2 qtcreator is built with Qt 6.7. At the same time , qtcreator in the offical Qt online installer is still depended on QT 6.6.

    PROBLEM:

    Spinbox and combo box drop list 's stylesheet not work in windows 11 .

    The picture below shows that in a hello-world Qt 6.7 mingw 11.2 app, spinbox become strange:

    e85339e0-f571-475a-bcec-b07be1899f1b-图片.png

    Qtcreator in msys2 : Help page's dropdown list 's front color is very similar to background:

    8bda822f-bb0c-4d96-9e2c-cc197d3f4de7-图片.png

    Start Qt app with

    $ app.exe --style fusion
    

    can fix this problem, which shows that this is indeed a style-sheet problem.


    I installed a vm win11 tonight. Official Qt online installer seems to be normal, because Qt creator is built with Qt 6.6. If you compile a hello-world widgets app with Qt 6.7 mingw 11.2, this problem will happen again.

    C 1 Reply Last reply 13 Apr 2024, 11:54
    0
    • G goldenhawking
      13 Apr 2024, 11:44

      This problem is discovered first in msys2, because in msys2 qtcreator is built with Qt 6.7. At the same time , qtcreator in the offical Qt online installer is still depended on QT 6.6.

      PROBLEM:

      Spinbox and combo box drop list 's stylesheet not work in windows 11 .

      The picture below shows that in a hello-world Qt 6.7 mingw 11.2 app, spinbox become strange:

      e85339e0-f571-475a-bcec-b07be1899f1b-图片.png

      Qtcreator in msys2 : Help page's dropdown list 's front color is very similar to background:

      8bda822f-bb0c-4d96-9e2c-cc197d3f4de7-图片.png

      Start Qt app with

      $ app.exe --style fusion
      

      can fix this problem, which shows that this is indeed a style-sheet problem.


      I installed a vm win11 tonight. Official Qt online installer seems to be normal, because Qt creator is built with Qt 6.6. If you compile a hello-world widgets app with Qt 6.7 mingw 11.2, this problem will happen again.

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 13 Apr 2024, 11:54 last edited by
      #2

      @goldenhawking said in Style mistake in win11 with MSYS2 Qt 6.7:

      Spinbox and combo box drop list 's stylesheet not work in windows 11 and MSYS2 ucrt64.

      What has MSys to do with this? Did you compile Qt by yourself or how is msys involved?
      Do you have a high-dpi screen?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      G 3 Replies Last reply 13 Apr 2024, 11:59
      0
      • C Christian Ehrlicher
        13 Apr 2024, 11:54

        @goldenhawking said in Style mistake in win11 with MSYS2 Qt 6.7:

        Spinbox and combo box drop list 's stylesheet not work in windows 11 and MSYS2 ucrt64.

        What has MSys to do with this? Did you compile Qt by yourself or how is msys involved?
        Do you have a high-dpi screen?

        G Offline
        G Offline
        goldenhawking
        wrote on 13 Apr 2024, 11:59 last edited by
        #3

        @Christian-Ehrlicher All packages are direct downloaded with pacman -S. My laptop run with 1920x1080, 96dpi (100%)

         screenfetch
                                          ..,  user@localhost
                              ....,,:;+ccllll  OS: Microsoft Windows 11 Home Edition (v10.0.22631) 64-bit
                ...,,+:;  cllllllllllllllllll  Kernel: x86_64 MINGW64_NT-10.0-22631 3.4.10.x86_64
          ,cclllllllllll  lllllllllllllllllll  Uptime: 125m
          llllllllllllll  lllllllllllllllllll  Packages: 1307
          llllllllllllll  lllllllllllllllllll  Shell: bash 5.2.26
          llllllllllllll  lllllllllllllllllll  Resolution: 1920x1080
          llllllllllllll  lllllllllllllllllll  DE: Modern UI/Metro
          llllllllllllll  lllllllllllllllllll  WM: DWM/Explorer
                                               WM Theme:Themes  aero
          llllllllllllll  lllllllllllllllllll  CPU: Intel Core i7-10510U @ 8x 2.31GHz
          llllllllllllll  lllllllllllllllllll  GPU: Intel(R) UHD Graphics
          llllllllllllll  lllllllllllllllllll  RAM: 4172MiB / 24306MiB
          llllllllllllll  lllllllllllllllllll
          llllllllllllll  lllllllllllllllllll
          `'ccllllllllll  lllllllllllllllllll
                 `'""*::  :ccllllllllllllllll
                                ````''"*::cll
        
        

        The QtCreator config directory in appData has been deleted, but that approach does not work.

        1 Reply Last reply
        0
        • C Christian Ehrlicher
          13 Apr 2024, 11:54

          @goldenhawking said in Style mistake in win11 with MSYS2 Qt 6.7:

          Spinbox and combo box drop list 's stylesheet not work in windows 11 and MSYS2 ucrt64.

          What has MSys to do with this? Did you compile Qt by yourself or how is msys involved?
          Do you have a high-dpi screen?

          G Offline
          G Offline
          goldenhawking
          wrote on 13 Apr 2024, 12:02 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • G goldenhawking has marked this topic as solved on 13 Apr 2024, 23:38
          • G Offline
            G Offline
            goldenhawking
            wrote on 13 Apr 2024, 23:40 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • G goldenhawking has marked this topic as unsolved on 14 Apr 2024, 00:11
            • C Christian Ehrlicher
              13 Apr 2024, 11:54

              @goldenhawking said in Style mistake in win11 with MSYS2 Qt 6.7:

              Spinbox and combo box drop list 's stylesheet not work in windows 11 and MSYS2 ucrt64.

              What has MSys to do with this? Did you compile Qt by yourself or how is msys involved?
              Do you have a high-dpi screen?

              G Offline
              G Offline
              goldenhawking
              wrote on 14 Apr 2024, 00:21 last edited by
              #6

              @Christian-Ehrlicher

              A new virtual machine with windows 11 has been established for testing.

              Just install official online opensource edition with Mingw 11.2 and Qt 6.7.

              1. create an empty dialog Qt C++ application.
              2. drag a spinbox to ui.
              3. compile and run, this problem can be visible.

              C 1 Reply Last reply 14 Apr 2024, 06:09
              0
              • G goldenhawking
                14 Apr 2024, 00:21

                @Christian-Ehrlicher

                A new virtual machine with windows 11 has been established for testing.

                Just install official online opensource edition with Mingw 11.2 and Qt 6.7.

                1. create an empty dialog Qt C++ application.
                2. drag a spinbox to ui.
                3. compile and run, this problem can be visible.

                C Offline
                C Offline
                ChrisW67
                wrote on 14 Apr 2024, 06:09 last edited by
                #7
                Edition	Windows 11 Home
                Version	23H2
                Installed on	‎3/‎06/‎2023
                OS build	22631.3447
                Experience	Windows Feature Experience Pack 1000.22688.1000.0
                

                Qt 6.6.0 and Qt 6.7.0 and MingW64 from official installer.

                Images Qt 6.6.0 (top) and Qt 6.7.0 (bottom)
                Win11_Qt6.6_vs_Qt6.7_default_style.png

                While I can see that the default style has changed (spin box controls and colouring), I don't see a "mistake." This UI is usable with a light or dark theme, and consistent with colour usage elsewhere in native Windows apps.

                <?xml version="1.0" encoding="UTF-8"?>
                <ui version="4.0">
                 <class>Form</class>
                 <widget class="QWidget" name="Form">
                  <property name="geometry">
                   <rect>
                    <x>0</x>
                    <y>0</y>
                    <width>400</width>
                    <height>300</height>
                   </rect>
                  </property>
                  <property name="windowTitle">
                   <string>Form</string>
                  </property>
                  <layout class="QVBoxLayout" name="verticalLayout">
                   <item>
                    <widget class="QSpinBox" name="spinBox"/>
                   </item>
                   <item>
                    <widget class="QFontComboBox" name="fontComboBox"/>
                   </item>
                   <item>
                    <widget class="QComboBox" name="comboBox">
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                     <item>
                      <property name="text">
                       <string>New Item</string>
                      </property>
                     </item>
                    </widget>
                   </item>
                  </layout>
                 </widget>
                 <resources/>
                 <connections/>
                </ui>
                
                Axel SpoerlA 1 Reply Last reply 14 Apr 2024, 07:44
                0
                • C ChrisW67
                  14 Apr 2024, 06:09
                  Edition	Windows 11 Home
                  Version	23H2
                  Installed on	‎3/‎06/‎2023
                  OS build	22631.3447
                  Experience	Windows Feature Experience Pack 1000.22688.1000.0
                  

                  Qt 6.6.0 and Qt 6.7.0 and MingW64 from official installer.

                  Images Qt 6.6.0 (top) and Qt 6.7.0 (bottom)
                  Win11_Qt6.6_vs_Qt6.7_default_style.png

                  While I can see that the default style has changed (spin box controls and colouring), I don't see a "mistake." This UI is usable with a light or dark theme, and consistent with colour usage elsewhere in native Windows apps.

                  <?xml version="1.0" encoding="UTF-8"?>
                  <ui version="4.0">
                   <class>Form</class>
                   <widget class="QWidget" name="Form">
                    <property name="geometry">
                     <rect>
                      <x>0</x>
                      <y>0</y>
                      <width>400</width>
                      <height>300</height>
                     </rect>
                    </property>
                    <property name="windowTitle">
                     <string>Form</string>
                    </property>
                    <layout class="QVBoxLayout" name="verticalLayout">
                     <item>
                      <widget class="QSpinBox" name="spinBox"/>
                     </item>
                     <item>
                      <widget class="QFontComboBox" name="fontComboBox"/>
                     </item>
                     <item>
                      <widget class="QComboBox" name="comboBox">
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                       <item>
                        <property name="text">
                         <string>New Item</string>
                        </property>
                       </item>
                      </widget>
                     </item>
                    </layout>
                   </widget>
                   <resources/>
                   <connections/>
                  </ui>
                  
                  Axel SpoerlA Offline
                  Axel SpoerlA Offline
                  Axel Spoerl
                  Moderators
                  wrote on 14 Apr 2024, 07:44 last edited by
                  #8

                  That’s a known bug. Working on it…..

                  Software Engineer
                  The Qt Company, Oslo

                  1 Reply Last reply
                  1
                  • G goldenhawking has marked this topic as solved on 17 Apr 2024, 04:47

                  2/8

                  13 Apr 2024, 11:54

                  topic:navigator.unread, 6
                  • Login

                  • Login or register to search.
                  2 out of 8
                  • First post
                    2/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved