QtCreator: No valid kits found
Solution 1
Found the issue. Qt Creator wants you to use a compiler listed under one of their Qt libraries. Use the Maintenance Tool to install this.
To do so:
Go to Tools -> Options.... Select Build & Run on left. Open Kits tab. You should have Manual -> Desktop (default) line in list. Choose it. Now select something like Qt 5.5.1 in PATH (qt5) in Qt version combobox and click Apply button. From now you should be able to create, build and run empty Qt project.
Solution 2
Though OP is asking about Windows, this error also occurs on Ubuntu Linux and Google lists this result first when you search for the error"QtCreator: No valid kits found".
On Ubuntu this is solved by running:
For Qt5:
sudo apt-get install qt5-default
For Qt4:
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
This question is answered here and here, though those entries are less SEO-friendly...
Solution 3
No valid Kits found The problem occurs because qt-creator don't know the versions of your qt, your compiler or your debugger. First off, let's solve the Qt versions. It may normally solve the others too ;).
You try to create a new project, run select a kit and then there is no kit available in the list.
Follow the steps:
- Execute in your terminal the command: sudo apt-get install qt5-default to install qt version 5.
- Verify the version of your Qt and the location of your qmake file. Do this by executing in your terminal the command qmake --version. You may have a result similar to this line. QMake version 3.1 Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu. What's important here is the location /usr/lib/x86_64-linux-gnu.
- Open your Qt-creator.
- Go to "Tools>Options" or "Outils>Options"
- Select the Qt Versions combobox and select and click "Add" or "Ajouter"
- Then find the qmake file in the location of step 2. Here /usr/lib/x86_64-linux-gnu/qt5/bin/ here you have the qmake file for qt5. Open it, click Apply.
- Go to "Kits" combobox. Select Desktop(by default) or Desktop(par défaut). Then scroll down to the button to select Qt version: and list down to select the version you just add. 8.Then apply all. Check your compiler and debugger and it's ok. You're done.
Yes I ...
Hope it's help ;)
Solution 4
In my case the issue was that my default kit's Qt version
was None
.
Go to Tools -> Options... -> Build & Run -> Kits
tab, click on the kit you want to make as default and you'll see a list of fields beneath, one of which is Qt version
. If it's None
, change it to one of the versions available to you in the Qt versions
tab which is just next to the Kits
tab.
Solution 5
I had a similar problems after installing Qt in Windows.
This could be because only the Qt creator was installed and not any of the Qt libraries during initial installation. When installing from scratch use the online installer and select the following to install:
-
For starting, select at least one version of Qt libs (ex Qt 5.15.1) and the c++ compiler of choice (ex MinGW 8.1.0 64-bit).
-
Select Developer and Designer Tools. I kept the selected defaults.
Note: The choice of the Qt libs and Tools can also be changed post initial installation using MaintenanceTool.exe under Qt installation dir C:\Qt
. See here.
Agrim Pathak
Interests: Artificial Intelligence, Simulations Primary Languages: python, Ruby on Rails, C++, SQL
Updated on January 07, 2022Comments
-
Agrim Pathak over 2 years
Installed just the IDE on Windows 7. I want to create a Plain C++ Project (Non-QT Project); however I get an error: No valid kits found. When I click on Options->Kits, I see the Desktop (default) kit, and it shows no errors.
Am I getting the error because I didn't install a Qt library? If so, is there any way I can bypass downloading/installing that and just use the IDE?
-
Iceberg almost 9 yearsThis is the only place I've seen where it talks about the Qt Maintenance Tool an dQt Libraries (I'm new at Qt and learning). Thanks!!
-
kayleeFrye_onDeck over 8 yearsWhen I went to do this, I got a corrupted installation error :( Installing qt is no short task x.x Especially when you throw in source... Thanks for the tip though!
-
mm_ about 8 yearsCould you add more info about the Maintenance Tool please?
-
Agrim Pathak about 8 years@mm_ Sorry, I haven't used QT Creator in over a year. Maybe someone else can assist?
-
Sam Protsenko about 8 years@mm_ Go to
Tools -> Options...
. SelectBuild & Run
on left. OpenKits
tab. You should haveManual -> Desktop (default)
line in list. Choose it. Now select something likeQt 5.5.1 in PATH (qt5)
in Qt version combobox and click Apply button. From now you should be able to create, build and run empty Qt project. -
n611x007 over 7 years@kayleeFrye_onDeck I got the feeling that I've seen much worse installation tasks. I wonder if that makes any ease but yeah that's how I feel anyway... hope you do alright
-
n611x007 over 7 years@SamProtsenko also make sure you select the right
Compiler:
before you clockOK
, and alsoDebugger:
. ho-ho-ho! + theDesktop (default)
gets "red stop" or "yellow warning" icon sign prefix when it's not right and you can hover your mouse over them to see the message... -
kayleeFrye_onDeck over 7 yearsThanks, @n611x007 -- I got this working eventually. Took some messing about in the settings.
-
n611x007 over 7 years@kayleeFrye_onDeck glad to hear that! for the record probably worth: wiki.qt.io/MinGW lists which version of "MinGW" is used in which version of QT, ie. helps to find the right version of the compiler for yourself. "MinGW" turns out to be ambigous thing to say...
-
Yankee about 7 yearsHow do I know whether I need Qt4 or Qt5?
-
mmdanziger about 7 yearsIIRC you can choose one or both. Since they can be installed side-by-side without causing problems. Your qmake files will say which version your project uses. So you may as well install both.
-
Admin almost 7 yearsI used this answer to install qt and this answer to select it.
-
McLan almost 7 yearshow to do so in Windows 10
-
Piotr Aleksander Chmielowski over 6 yearsOn Ubuntu I'm getting:
E: Unable to locate package libqt4-core E: Unable to locate package libqt4-gui
-
mmdanziger over 6 years@PiotrAleksanderChmielowski , try following the suggestions in askubuntu.com/a/801760/44630
-
Ivan Castellanos over 6 yearsSo this solution doesnt work cause qmake.exe its missing from my pc... apparently it comes somewhere else; why qt installer allows one to install the creator without whatever dependencies it needs without warning, this is dumb as hell
-
depperm about 6 yearsthis does not solve the OP question, this is an answer for ubuntu users
-
SametSahin over 5 yearsIf you can't see anything on the Qt version combobox, make sure you add your version of Qt on the Qt versions tab. I've been able to solve the problem applying @SamProtsenko 's solution and taking this extra step.
-
The Dnino over 4 yearsAfter installing qt5-default, on Qt Creator, start NEw Project, then when clicking on Options->Build&Run-> in desktop you have to select Qt version, then it will appear in the list
-
craq almost 4 yearsthis was a better guide to the qt-creator GUI than the accepted answer. To make it relevant for windows, install qt with pip (or anaconda) and run
find <path_to_python> -name qmake.exe
in git-bash to figure out the location of your qmake file. (For me it was~/Anaconda3/Library/bin/qmake.exe
.) -
Omkar76 over 3 yearsWhere is PATH thing? Where to select version? I think the ui is changed a lot. I don't even see "empty qt project option".
-
BitTickler almost 3 years
E: Unable to locate package qt5-default
is what I get if I try to sudo apt-get install qt5-default. So I guess you guys here assume some preceding steps. Which ones? -
Anonymous almost 3 yearsLast time I had this problem I voted this answer up. This time I could not select any "qt version", there was just "none" available. So this time the following answer of @Joseph Tankoua solved the problem. First, I had to add qmake as described by Joseph, then I had to select it under "qt version"....
-
Jess almost 3 yearsSame for me... but chose to install via Visual Studio.
-
Anonymous over 2 yearsI do not want to edit this (good) answer, but you need less steps: Find location of qmake: "which qmake". Then: "QtCreator -> Tools -> Options -> Kit (to the left) -> Qt Versions -> Manual -> File Dialog pops up -> Navigate to location of your qmake". That's it