Ui looks different in release mode
-
When I compile my project with Qt 5.10.1 in release mode, the UI looks different :
In debug mode :
In release mode :
Has anyone an idea of why it looks different when compiled in release mode ?
EDIT : I have this issue since I compile with Qt 5.10.1, it didn't occur with Qt 5.4.2
-
You should try to replicate it with a minimal project created on your machine, which does show the same phenomen. Typically a short demo based on Qt creator templates would demostrate.
Otherwise I would expect that this is due to some macro switches within your code where the style is changed differently depending on macro setting for release and debug.
-
-
I have finally found the reason :
With Qt 5.10.1 you need to add the dll : plugins/styles/qwindowsvistastyle.dll at the root of your project.
Now it is working fine!
Here's where I got inspired : https://github.com/mxe/mxe/issues/2037 ;-)
Thanks all for your replies