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
-
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
-
I use Windows 7 and I have compiled it with MinGW 5.3 32 bits.
Well I cannot really share the code since it's a commercial application
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 don't have this issue with a minimal project, the QPushButton looks the same in both debug and release mode.
I have omitted to say that I used to compile my project with Qt 5.4.2 and didn't have the issue. It occured when I compiled it with Qt 5.10.1 -
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