You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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:

  1. Open QT Creator, head to Tools > Options > Kits.
  2. 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).
  3. Check Debuggers: Go to the Debuggers tab. Ensure there's a debugger matched to your compiler (e.g., gdb.exe for MinGW, cdb.exe for MSVC). The installer usually adds this automatically if you picked the right components.
  4. Add Your QT Version: Switch to the Qt Versions tab, click Add, then navigate to your QT installation folder's bin directory and select qmake.exe (example path: C:\Qt\6.5.2\mingw_64\bin\qmake.exe). QT Creator will auto-detect the version.
  5. 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:40:08