[Qt-creator] Finding Qt bin for Kit
Janne Koskinen
koshuin at gmail.com
Tue Sep 22 12:30:21 CEST 2015
> See QtKitInformation in ./src/plugins/qtsupport/qtkitinformation.h
>
> I think what are you looking for is:
> static BaseQtVersion *qtVersion(const ProjectExplorer::Kit *k);
> and BaseQtVersion::binPath() or BaseQtVersion::qmakeCommand()
Thanks, it works :)
<snip>
ProjectExplorer::Project *pro =
ProjectExplorer::SessionManager::projectForFile(selectedFile);
QtSupport::BaseQtVersion *qtVersion =
QtSupport::QtKitInformation::qtVersion(pro->activeTarget()->kit());
Utils::FileName bin = qtVersion->binPath();
</snip>
More information about the Qt-creator
mailing list