Widget Style is different if App is running in Qt Creator then "outside" under Windows
-
Dear All!
I updated my Qt app to 6.6 and have the following problem now:
When I run my app which is using a QDial from within Qt Creator, everything looks like expected (see the left dial on the screenshot).But when It runs right from the File-System in the target folder i get a complete different look of the QDial (and also the buttons) - see the right dial on the screenshot.
Even when I try to set the style via QApplication::setStyle(QStyleFactory::create("Windows")); it is not changed.
Somewhere I read that styles can me implemented via Plug-Ins. Do I have to add some DLLs to the folder whre the .exe is residing so get the correct result?
Or anything else...?Many thanks in advance,
Klaus -
Hi,
If you want to start your application from the explorer you should follow the deployment steps with windeployqt. I must say that it is surprising that your application starts at all already.
-
@klausix The dial on the left looks like Windows Vista Style, but may be Fusion, and the right-hand dial is maybe Windows style like you coded.
The style plugins live, alongside all the others, under the Qt library folder
.../plugins/styles
. An online installer version of Qt 6.6 on Windows 11 gives me only the Windows Vista Style plugin. -
@ChrisW67 Because windows and fusion are built-in into QtWidgets.