Ubuntu 18.04 qtchooser
安装qtchooser
apt install qtchooser
生成一个新的qt.conf配置文件
qtchooser -install qt5.12 /opt/Qt5.12.5/5.12.5/gcc_64/bin/qmake
这里/opt/Qt5.12.5/5.12.5/gcc_64/bin/qmake是安装目录。
可以看到,在/usr/lib/x86_64-linux-gnu/qt-default/qtchooser/ 目录下生成一个新的qt5.12.conf
设置想要使用的qt版本
创建default.conf链接,链接到想使用的QT版本对应的配置文件,这里我选择了刚安装的qt5.12
cd /usr/lib/x86_64-linux-gnu/qtchooser/
ln -s ../qt-default/qtchooser/qt5.12.conf default.conf