Linux command
qt-select 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show current Qt version
qtchooser -print-env
List available versions
qtchooser -l
Select Qt version
export QT_SELECT=[qt5]
Run tool with specific Qt
qtchooser -run-tool=[qmake] -qt=[5]
说明
qtchooser (or qt-select) allows switching between multiple Qt installations. It manages which Qt version's tools (qmake, moc, etc.) are used by default.
参数
- -l, --list-versions
- List available Qt versions.
- -print-env
- Print environment settings.
- -run-tool=_tool_
- Run specific tool.
- -qt=_version_
- Select Qt version.
FAQ
What is the qt-select command used for?
qtchooser (or qt-select) allows switching between multiple Qt installations. It manages which Qt version's tools (qmake, moc, etc.) are used by default.
How do I run a basic qt-select example?
Run `qtchooser -print-env` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --list-versions do in qt-select?
List available Qt versions.