How to get active kit in source code?
-
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. -
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
-
:) 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?
@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 -
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.@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 ?