Skip to main content

yaqti (Yet Another QT Installer - ya-q-ti!)

PyPI version Python Unit-Tests (pytest)

Overview

yaqti is a basic unofficial CLI Qt installer; designed to keep things as stupid as possible. It lets you install different Qt5 and Qt6 versions with optional modules such as QtCharts, QtNetworkAuth ect all in a single command,

# install yaqti
pip install yaqti
# install Qt! 
python -m yaqti install --os windows --platform desktop --version 6.2.0 --modules qtcharts qtquick3d

, optionally the --set-env can be specified. This sets Qt5_DIR/Qt6_DIR so CMake can find the installation. --install-deps can be specified, on Linux platforms to install Qt dependencies from apt-get. It can also be used as a github action,

-   name: Install Qt
    uses: WillBrennan/yaqti
    with:
        version: '6.2.0'
        host: 'linux'
        target: 'desktop'
        modules: 'qtcharts qtwebengine'

. By default, the github-action will set the enviroment variables for Qt and install Qt dependencies. For a real-world example visit disk_usage, the project this was made for.

Options

version

The version of Qt to install, for example 6.2.0 or 5.15.2. It checks the version is valid.

os

The operating system you'll be running on linux, windows, or mac.

platform

The platform you'll be building for, desktop, winrt, android, or ios.

modules

The optional Qt modules to install such as, qtcharts, qtpurchasing, qtwebengine, qtnetworkauth, qtscript, debug_info.

output - default: ./qt

The directory to install Qt in, it will put it in a version sub directory. By default if you install --version=5.15.2 it will install qt into ./qt/5152.

--set-envs

Designed for use in CI pipelines; this sets enviromental variables such as PATH, Qt5_DIR, and Qt6_DIR so CMake can find Qt and you can use executables directly.

--install-deps

Designed for use in CI pipelines. This installs dependencies required by Qt on Linux platforms. If this flag is provided on non-linux platforms it does nothing.

Why Another Qt CLI Installer?

I've had issues with other CLI installers in the past,

  • They'll silently fail to download a module if you type qcharts instead of qtcharts
  • This fetches module and addon configurations directly from the Qt Archive, new modules and versions will appear without the tool updating!
  • It keeps module names the same between Qt5 and Qt6 despite Qt moving them around a bit.
  • I like to keep things stupidly simple!

How does it work?!

Qt provides the Qt Archive, this script simply works out what 7zip files to fetch and unpacks them to the specified installation directory. Then if you want, it sets the enviroment variable so CMake can find the install.

Release files for qt-installer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qt-installer 0.1.0
File Size Uploaded
qt_installer-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qt-installer 0.1.0
File Interpreter ABI Platform
qt_installer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / qt_installer-0.1.0.tar.gz

Download URL qt_installer-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1cb5bc218a5ee0a89292c08ab411450fe515af1ef9e687ec0a6723b2c4b2ba0b
BLAKE2b-256 checksum
How to use checksums
000937bbb5ab51710f38a1d8c8e539d934d97394e31341f2956a1ff28add9738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / qt_installer-0.1.0-py3-none-any.whl

Download URL qt_installer-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2301bf36f05916477ab961b0e1ee1656814ff5fd315c69d66b09dafa98c051fc
BLAKE2b-256 checksum
How to use checksums
16756ba127012a51c9dae575fe69afb18a2ec0225a9ec0ef61f421419af5b69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page