Qt – Appearance difference between Qt4 and Qt5

qtqt4qt5

I use Ubuntu 12.10 64 bit. I installed Qt4 from Ubuntu repo.
Version is Qt 4.8.3 and Qt Creator 2.5.2

I also downloaded Qt5 from qt-project.org and its version number is
Qt 5.0.1 and Qt Creator 2.6.2

When I compiled and run same project, their appearance slightly different.
What is the reason for that? Is it because of Ubuntu or Qt5?

Qt4 and Qt5 appearance difference

Best Answer

Qt5 brought in some major changes of the GUI code, if you spot differences it's likely to be down to that rather than anything else.

New graphics architecture. Qt 5 introduces a new graphics architecture for Qt Quick using Scenegraph on top of OpenGL. OpenGL (ES) 2.0 is mandated for this to work. The new architecture makes it easier to integrate OpenGL-based content, such as shader effects, with Qt Quick-based applications. The QWidget-based stack continues to work as in Qt 4.x (based on QPainter), but supported back-ends have been limited to SW rasterization, pixmaps, and images, an OpenGL backend for GL surface,s and a backend for PDF generation and printing. X11 and CoreGraphics are no longer supported.

From Dr Dobbs Qt5 beta tour.

Related Topic