Command line tool for downloading and installing prebuilt Qt binaries.
This tool is unofficial and not affiliated with, endorsed by, or supported by Qt Group nor the Qt Project.
Assuming you have the dotnet runtime, download prebuilt binaries and run:
dotnet naqt.dll install-qt windows desktop 6.8.3 win64_msvc2022_64
Or if you have the full dotnet SDK and prefer to run from source:
git clone https://github.com/jdpurcell/naqt
cd naqt
dotnet run -- install-qt windows desktop 6.8.3 win64_msvc2022_64
Commands
install-qt
<host> <target> <version> [<arch>]
[--outputdir <directory>]
[--modules <module> [<module>...]]
[--extensions <extension[@version]> [<extension[@version]>...]]
[--archives <archive> [<archive>...]]
[--autodesktop]
[--mirror <baseurl>]
[--nohash]
[--dryrun]
list-qt
<host> <target> <version> [<arch>]
[--mirror <baseurl>]
[--nohash]
You can use this site to help build the install command.
Already using jurplel/install-qt-action? Just change it to use my fork on the v5 branch and set the use-naqt option to true. You can also set setup-python to false since this tool doesn't need it. Example:
- name: Install Qt
uses: jdpurcell/install-qt-action@v5
with:
use-naqt: true
setup-python: false
# .. other options ..You can use this site to help build the install script.
- The full version number (major.minor.patch, no wildcards) must be specified.
- Cannot install Qt tools, source code, documentation, or examples.
- When cross-compiling (e.g. WASM, Android, iOS), it's recommended to perform installation in a single step with
--autodesktop.install-qt-actionenables this option by default. It is possible, however, to perform the host and target installations in separate steps, but do not pass--autodesktopin this case.
If you need any of these features, use the excellent aqtinstall instead.
- For WASM,
naqtuses targetwasmfor all versions, whereasaqtuses targetdesktopfor versions < 6.7. naqthas an--extensionsswitch although its use is optional; it detects known extensions (qtpdf,qtwebengine) requested via--modules, similar toaqt.naqtswitch--mirrorisaqtswitch--base.naqtswitch--nohashisaqtswitch--UNSAFE-ignore-hash.naqtswitch--dryrunisaqtswitch--dry-run.