Style mistake in win11 with Qt 6.7+ mingw 11.2 official online release.
-
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:
Qtcreator in msys2 : Help page's dropdown list 's front color is very similar to background:
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.
-
@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? -
@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.
-
This post is deleted!
-
-
This post is deleted!
-
-
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.
- create an empty dialog Qt C++ application.
- drag a spinbox to ui.
- compile and run, this problem can be visible.
-
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)
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>
-
That’s a known bug. Working on it…..
-