How do you install qt on ubuntu22.04

In ubuntu20.04 qt5-default was the package name. So I tried the same and qt6-default in 22.04.

Then I tried apt-cache search qt which revealed (among many others): qt6-base-dev and qt5-base-dev.

I am unsure whether the new qt{version}-base-dev is the old qt5-default. If not: What is?

2 Answers

You need to install packages:

sudo apt install -y qtcreator qtbase5-dev qt5-qmake cmake

And you need to manually change the Qt version:screenshot how to manually change Qt version

Then you need to manually change Qt version in the Kits tab:screenshot on the Kits tab

3

Why don't you install it with their online installer.

Once downloaded, chmod +x qt-unified-linux-<arch>-<version>-online.run then ./qt-unified-linux-<arch>-<version>-online.run

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like