I installed Qt 4.8.3 and Qt Creator 2.5.2 on Fedora 17 and Ubuntu 12.04. When I create a GUI application, the visual elements look good in the Qt Designer preview window. However when I run the application, the resulting application has an older style which is inconsistent with the OS and does not match the preview in Qt Designer.
In both of the images below, the top part is the preview from Qt Designer and the bottom part is the compiled application.
Is there a way to make the compiled GUI application appear properly?
Fedora:
Ubuntu:
Addendum: Here is an image showing a 4.8.1 compiled application (how it's supposed to look like)
Additionally, If I install both 4.8.1 and 4.8.3 on the same computer, even 4.8.1 compiled applications will not appear properly:
Problem is solved.
When installing the Qt source, the instructions forgot to mention that a list of developer libraries must be installed prior to the ./configure step. This list can be found here: http://qt-project.org/wiki/Build_Qt_For_Linux
Additionally, I had trouble compiling QtWebkit because of the error:
g++: error: unrecognized command line option ‘-fuse-ld=gold’
To solve this new problem, one of the two following solutions are possible:
-no-webkit
option: ./configure -no-webkit
OR
QMAKE_LFLAGS+=-fuse-ls-gold
from the file qt-everywhere.../src/3rdparty/webkit/Source/common.pri
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With