Installing
-
2. Enabling Qt4 Repository
Add Qt4 PPA Repository for Ubuntu GNU/Linux
-
3. Installing Qt4
Then to Install Qt4 in Ubuntu
Simply run:sudo apt install qt4-default
Authenticate with the User’s Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.
Next to make it fixed and so integrate it definitely into the System:sudo apt-mark manual qt4-default qt4-qmake qtcore4-l10n libllvm9 libmng2 libodbc1 libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-odbc libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtdbus4 libqtgui4 qdbus qt4-linguist-tools
-
4. Reinstalling Qt5
Now you have to Reinstall Qt5
This because the default Ubuntu setup suppose only one version is enough:sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
Again to reset Qt5 Qmake as Default:
sudo update-alternatives --install "/usr/bin/qmake" "qmake" "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" 40
-
5. Testing Qt4
Finally, to Test Qt4 Setup
On Command Line play:qmake-qt4 -v
So Now I’m truly Happy if My Guide could Help you to Install Qt4 on Ubuntu 21.04 Hirsute!
Contents