You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
请问一下,怎么获取当前系统所有的qt版本,并且在编译时可以自动选择
现存的问题
qt_sdkver
设置qt版本,但这个前提是知道当前系统中的qt版本是多少yay
这样的编译安装时,应用可能只关心qt5或qt6,并不严格要求小的版本号,然而具体的用户系统qt版本也是千差万别,有无能判断qt版本的方法CMake的解决方案
通过
find_package
指定Qt5
或者Qt6
,比如Beta Was this translation helpful? Give feedback.
All reactions