QTCHOOSER(1)
QTCHOOSER π
okay so bestie, listen β qtchooser is a wrapper used to select between Qt development binary versions. that's the whole vibe. it's the little matchmaker that decides which Qt shows up to the party. β¨
πΈ SYNOPSIS πΈ
qtchooser -list-versions
qtchooser -print-env [-qt=version]
qtchooser -run-tool=tool [-qt=version] [program_arguments]
<executable_name> [-qt=version] [program_arguments]
no cap, that last one is the sneaky one β it's how you actually use it day to day. π
π DESCRIPTION π
so Qt is a cross-platform C++ application framework. and its whole main character thing is its rich set of widgets that give you standard GUI functionality. gorgeous, iconic, we love her. π
the Qt Chooser is the wrapper that lets you switch between versions of Qt development binaries when you've got multiple versions installed β like 4 and 5 both chilling on your machine β or when you wanna use local Qt builds instead of the system ones. it's giving "let me pick which one you're talking to". β¨
and the way it's commonly used? via a symlink from an executable_name like qmake. that's the move. that's the whole bit. π¦
β¨ OPTIONS β¨
these are the options that apply to the qtchooser command, bestie:
-list-versionsβ lists all the available Qt versions, pulled straight from the configuration files. vibe check on what you've got installed. π-print-envβ prints environment information. receipts, basically. π§Ύ-qt=versionβ selects version as the Qt version to be used. the "okay THIS one" flag. π-run-tool=toolβ runs the selected tool. π
π ENVIRONMENT π
QTCHOOSER_NO_GLOBAL_DIRβ ifqtchooserhas been built withQTCHOOSER_GLOBAL_DIR(those are predefined search paths for qtchooser's configuration files, useful in some distros), then setting this variable will override its effect. like, no thank you to the global dir today. πQT_SELECTβ same as-qt=version. if it's set, the selected configuration gets used, and binaries symlinked toqtchooserwill just be executed without any additional parameters. set it and forget it, fr fr. πXDG_CONFIG_HOMEXDG_CONFIG_DIRSβ used as specified in <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>
π FILES π
/etc/xdg/qtchooser/*.confβ system-wide configuration files. each one has two lines: the first is the path to the binaries, and the second is the path to the Qt libraries. and if adefault.confis provided, the settings from it will automatically be used in case nothing else is selected. it's the fallback bestie. π«Ά$HOME/.config/qtchooser/*.confβ user configuration files. your personal stash. πΈ
π AUTHOR π
qtchooser was written by Thiago Macieira from Intel. king behaviour. π
this manual page was written by Timo Jyrinki <timo@debian.org>, for the Debian project (but may be used by others). π
and that's the tea, bestie β this page is dated JANUARY 2, 2013, it's page QTCHOOSER(1) of the General Commands Manual, and honestly? iconic since day one. periodt. π
β¨π
π¦ where this page comes from
- debian bookworm: qtchooser 66-2 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- debian trixie: qtchooser 66-2 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- ubuntu jammy: qtchooser 66-2build1 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- ubuntu noble: qtchooser 66-2build2 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- ubuntu questing: qtchooser 66-2build2
- ubuntu resolute: qtchooser 66-2build3 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- ubuntu stonking: qtchooser 66-2build3 Β· LGPL-2.1-only WITH Digia-1.1 exception OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms