Ask Your Question
1

Correct default Qt version in Fedora 29?

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

fasulia gravatar image

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

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. https://wiki.archlinux.org/index.php/... 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
QTINC=/usr/lib64/qt-3.3/include
QTDIR=/usr/lib64/qt-3.3
QT_SCALE_FACTOR=1
QTLIB=/usr/lib64/qt-3.3/lib
QT_IM_MODULE=xim
QT_AUTO_SCREEN_SCALE_FACTOR=0

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

$ qtchooser -list-versions
4-64
4
5-64
5
default

also:

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

/usr/lib64/qt4:
bin  imports  mkspecs  phrasebooks  plugins  q3porting.xml

/usr/lib64/qt5:
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

Comments

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

florian gravatar imageflorian ( 2019-02-04 03:33:28 -0500 )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 -0500 )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 -0500 )edit

Maybe there is something useful out there: https://duckduckgo.com/?q=The+QT_QPA_...

Looks like a common problem getting qt5ct to work.

florian gravatar imageflorian ( 2019-02-04 11:50:42 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

fasulia gravatar image

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

export QT_QPA_PLATFORMTHEME="qt5ct"

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

https://bugzilla.redhat.com/show_bug....

https://ask.fedoraproject.org/en/ques...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 146 times

Last updated: Feb 04