Ugly Qt app looks under ubuntu

I need Qt development for Linux. First I downloaded the source code and compiled it under Windows 7, but then I decided to work under Ubuntu. The problem is that the application on Linux looks like Win95 times. I set Qt4 Settings and selected the GTK + style, but it improved the appearance a bit, although it still looks very ugly (for example, 256 color correction sticks, the font is italicized). I also installed many gtk libraries, but nothing helped. I am using Qt-4.7.4. I know this should look different since the problem does not appear on Windows, even on my boss's computer, which also uses Ubuntu, the application looks much better.

The application changes the style to QPlasticStyle.

Thanks for every answer.


Well, many more attempts, but nothing has changed. Maybe I will show you this problem. How the application should look (more or less) (ss made by one of my co): http://postimage.org/image/70p6sw7xd/full/

and what it really looks like (ss made by me): http://postimage.org/image/48psktnuj/full/

There are two things that I have not done yet:
1) First I installed Qt-4.8.1, but it generated some OpenGL errors using make, after which I downloaded version 4.7.4 (the one that my boss and braid are using), and struggled with the installation. Finally, I just overwrote qt-make from 4.8.1 with the one from 4.7.4, and it compiled in order. But then I came across the question "Question". Point - all Qt applications report (Help-> About Qt) that they are using Qt-4.8.1, and I wonder if this is due to a problem.

2) - . MSI CX640 Nvidia Optimus . Ubuntu Intel HD3000 GT520M ( , , ). googled , GT520M. - , , OpenGL , ). , , , .

, .

PS. , .

+3
6

, , .

Qt 4.7.4 , , , , Monotype Ubuntu. , Qt, . , , ? , .

: ! ! 4,8.1, , http://qt-project.org/forums/viewthread/14269/#74232 http://ubuntuforums.org/showthread.php?t=1559654

.

0

qt4-qtconfig. qtconfig, .

sudo apt-get install qt4-qtconfig
qtconfig &

Edit:

, ( ) ~/.config/Trolltech.conf. Qt4 Settings, . , Oxygen QtCurve.

+6

?

, .cpp,.h .pro

.pro.user, . .

qmake make, , .

"sudoing" ? .

0

? , , , -style cleanlooks (windows, motif, cde, plastique, cleanlooks gtk+). foo, :

foo -style gtk+

. , Qt.

, , , - Qt4.7.4.

, , , diff , .

Qt /usr/lib/i386-linux-gnu/ (, , ), libQt...

, Makefile -L. , , /usr/lib.

, :

ls -l /usr/lib/i386-linux-gnu/libQt*

, , , . , (, Qt4.8).

, . . , Qt.

0

Qt 4, , , "". , Qt 5 ( , setGraphicsSystem ).

. . http://qt-project.org/doc/qt-4.8/qapplication.html#setGraphicsSystem

void QApplication:: setGraphicsSystem (const QString ) []

, QPixmaps. "", "" "opengl".

:

  • -graphicssystem switch
  • QApplication:: setGraphicsSystem()
  • QT_GRAPHICSSYSTEM
  • Qt configure -graphicssystem

, .

. QApplication.

0

ubuntu 14.04 , root motif, .

, :

app.setStyle("gtk")

app - QApplication.

. http://doc.qt.io/qt-4.8/qapplication.html#setStyle-2

0

All Articles