QTCHOOSER(1)

πŸ“¦
version 66 Β· 2 versions
  • 66 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 39 Β· fedora 43, fedora 44
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

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 β€” if qtchooser has been built with QTCHOOSER_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 to qtchooser will just be executed without any additional parameters. set it and forget it, fr fr. πŸ’œ
  • XDG_CONFIG_HOME
  • XDG_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 a default.conf is 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