Saturday, February 19, 2022

[SOLVED] Qt version in centos7

Issue

I am using centos 7. To check the version of qt installed I am using the command qmake --version which returns

Qmake version: 1.07a (Qt 3.3.8b).
Qmake is free software from Trolltech ASA.

However when I give the command yum install qt, I get the message

Package 1:qt-4.8.5-13.el7.x86_64 already installed and latest version.
Nothing to do.

I am not sure which version of qt is installed in my system! I need to have a qt version > 4.7.


Solution

I edited the file .bash_profile as export QTDIR=/usr/local/Trolltech/Qt-4.8.2 export PATH=$QTDIR/bin:$PATH after removing qt3 and now its working fine.



Answered By - mars21al
Answer Checked By - David Goodson (WPSolving Volunteer)