How to get active kit in source code?
-
wrote on 21 Mar 2017, 14:33 last edited by
Hi,
I am making a project for ARM platform using cross-compiling on Linux. I have set two kits, one for Desktop (gcc) and one for ARM (arm-linux...). It works on both platform. I want to "know" which kit is currently active in source code. -
wrote on 21 Mar 2017, 14:42 last edited by
Hi @kahlenberg
There is screen icon on the left menu in qt creator, you have to click in this icon to know which kit is used for know
-
wrote on 21 Mar 2017, 14:45 last edited by kahlenberg
:) I know, but my question is how can I get this information in source code or during runtime?
-
:) I know, but my question is how can I get this information in source code or during runtime?
wrote on 21 Mar 2017, 14:46 last edited by mostefa@kahlenberg said in How to get active kit in source code?:
:) I know, but my question is how can I get this information in source code?
Oh sorry
you can use
currentCpuArchitecture
if you are using qt5 -
wrote on 21 Mar 2017, 14:54 last edited by
Ok, Thank you. It is not exactly what i am looking for but it is also useful.
Thanks. -
Ok, Thank you. It is not exactly what i am looking for but it is also useful.
Thanks.wrote on 21 Mar 2017, 14:58 last edited by@kahlenberg said in How to get active kit in source code?:
Ok, Thank you. It is not exactly what i am looking for but it is also useful.
Thanks.You are looking for the exact name of your kit?
As far as i know we can not get this information in source code,
But who knows ...
-
Hi,
Why exactly do you need to know that in your sources ?
2/7