Ask Your Question

Correct default Qt version in Fedora 29?

asked 2019-02-04 00:41:05 -0600

fasulia gravatar image

updated 2019-02-04 00:45:26 -0600

What should the default Qt version be in Fedora 29?

After upgrading from Fedora 28 to Fedora 29, I noticed Clementine's appearance changed. I had previously used qtconfig-qt4 to modify the appearance, and now in Fedora 29 changing those settings makes no difference.

Qt5 does not seem to have a qtconfig utility, but a packaged called qt5ctexists. However it won't launch due to an error:

The QT_QPA_PLATFORMTHEME environment variable is not set correctly

My environment shows:

$ printenv | grep QT

and there are several Qt versions installed on my system apparently:

$ qtchooser -list-versions


$ ls /usr/lib64/qt*
bin  etc  lib  plugins  translations

bin  imports  mkspecs  phrasebooks  plugins  q3porting.xml

bin  imports  libexec  mkspecs  plugins  qml

Which Qt version should be used by default and how should it be set?

edit retag flag offensive close merge delete


FYI, Clementine is a bit older was build against Qt4, not Qt5.

florian gravatar imageflorian ( 2019-02-04 03:33:28 -0600 )edit

In Clementine under Help -> About Qt... it mentions "This program uses Qt version 5.11.3."

fasulia gravatar imagefasulia ( 2019-02-04 03:38:41 -0600 )edit

OK, sorry for the false information then. You are right, starting with F29 clementine was build against Qt5.11

florian gravatar imageflorian ( 2019-02-04 11:31:33 -0600 )edit

Maybe there is something useful out there:

Looks like a common problem getting qt5ct to work.

florian gravatar imageflorian ( 2019-02-04 11:50:42 -0600 )edit

No worries, thanks for thinking of it. In F28, qtconfig-qt4 did change clementine's appearance. Since it didn't work in F29, that was my first clue about this change and the need to configure Qt5. What does your system show for Qt defaults, environment variables, and installed Qt libraries?

fasulia gravatar imagefasulia ( 2019-02-04 11:53:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-04 18:41:28 -0600

fasulia gravatar image

I got qt5ct working by creating the file /etc/profile.d/ with the following contents:


The Qt3 environment variables (and PATH entries) are set by the files /etc/profile.d/ and /etc/profile.d/qt.csh which are apparently part of the qt3 installation.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-02-04 00:41:05 -0600

Seen: 231 times

Last updated: Feb 04 '19