Windows下QT Creator提示No valid kits found的解决求助
Fixing "No valid kits found" & QT Installation Failures on Windows
Hey there, let's tackle your QT issues one by one—first the frustrating installation crash, then the missing kits problem.
Step 1: Fix the QT Installation Crash (7GB Package Failing at 30%)
That abrupt failure where the installer deletes the directory mid-process usually stems from network glitches, permission issues, or overactive security tools. Try these fixes:
- Free up enough disk space: Make sure your target drive has at least 10GB of free space—this gives room for the installer's temporary files on top of the 7GB package.
- Run the installer as Administrator: Right-click the QT setup file and select "Run as administrator". Permission restrictions often cause the installer to abort and clean up files prematurely.
- Temporarily disable security software: Antivirus or firewall tools might flag QT's installation files as suspicious. Turn them off briefly during installation, then re-enable once it's done.
- Use an offline installer: Online installs are prone to network drops. Grab the offline installer for your desired QT version, and only pick the components you need (like Desktop Qt + MinGW/MSVC + QT Creator) instead of the full suite. This cuts down on download size and avoids mid-install network failures.
- Trim unnecessary components: You don't need every QT module! When installing, deselect mobile, embedded, or older QT version components to shrink the total installation size and lower the chance of failure.
Step 2: Fix "No valid kits found" After Successful Installation
Your hunch is spot-on—this error pops up when QT Creator can't locate QT libraries, compilers, or debuggers. Here's how to set up a valid kit:
- Open QT Creator, head to
Tools > Options > Kits. - Verify Compilers: Switch to the Compilers tab. You should see a compiler listed (like MinGW 64-bit or MSVC 2019 64-bit). If not, make sure you selected a compiler during QT installation (or install Visual Studio with C++ development tools if using MSVC).
- Check Debuggers: Go to the Debuggers tab. Ensure there's a debugger matched to your compiler (e.g.,
gdb.exefor MinGW,cdb.exefor MSVC). The installer usually adds this automatically if you picked the right components. - Add Your QT Version: Switch to the Qt Versions tab, click Add, then navigate to your QT installation folder's
bindirectory and selectqmake.exe(example path:C:\Qt\6.5.2\mingw_64\bin\qmake.exe). QT Creator will auto-detect the version. - Create a Kit: Go back to the Kits tab, click Add. Name your kit (e.g., "Qt 6.5.2 MinGW 64-bit"), then select the compiler, debugger, and QT version you just set up. Save the kit.
Restart QT Creator after these steps, and you should have a valid kit ready to create your first QT project!
内容的提问来源于stack exchange,提问作者hellomates
相关产品推荐
相关产品推荐

