Kit selection through project



  • Hi,

    I am sure that I can install multiple versions of Qt in my desktop and I can manually choose the kit in the preferences.

    Question is that, can we have this kit configuration stored as part of project?

    Meaning, when I load the project, choose the kit which was configured before.

    Is it possible?


  • Lifetime Qt Champion

    Hi,

    Qt Creator stores that kind of information in your_project.pro.user so when you reopen it it should load it with your kit selection etc.

    Note that this file should not be part of your repository since it contains data specific to your machine and Qt installation that won't valid for someone else or simply for another platform you develop on.



  • In .pro.user file, I do not see any configuration that indicates the kit selection.

    Can you help me with the screenshot or an example?

    Thank you Sam!


  • Qt Champions 2016

    @kumararajas
    What i did was
    Make default gui project use, first kit
    Save all and quit Creator
    Go to folder and make COPY of the *.user file
    Open project again and change kit
    Close Creator

    use tool to compare copy of .user and the .user file
    like http://winmerge.org/?lang=en

    Then it was really clear.

    anyway

    <variable>ProjectExplorer.Project.ActiveTarget</variable>
    <value type="int">1</value>
    </data>

    points to the kit and

    <variable>ProjectExplorer.Project.Target.1</variable>

    define the kit

    Start with 0 (zero)



  • That's sweet.

    Thanks a lot for the clear explanation. Makes me clear!



  • Hi All,
    I am trying to install latest version of qt using online qt run on my another ubuntu 16.04 LTS 64 bit .....it was successfully installed took 8 hours ...i configured the path is Home only in Qt directory there are lot of qt versions are there while trying check the qt version is qmake --version is 5.5 and i am trying to connect mssql server through qt application it is coming as intermixing of qt version and installed odbc driver successfully....


  • Lifetime Qt Champion

    @veera I already kindly asked you here to stop highjacking other people thread with your unrelated questions. So again: stop.



  • Hello SGaist,
    I am new to Qt gui programming so i am facing the problem i did not understand how to solve this problem so i posted ....if you don't want answer this question instead of telling "stop highjacking other people thread with your unrelated question" somebody will answer .if you have answer tell me otherwise leave it bro....



  • @veera said in Kit selection through project:

    I am new to Qt gui programming so i am facing the problem i did not understand how to solve this problem so i posted ....if you don't want answer this question instead of telling "stop highjacking other people thread with your unrelated question" somebody will answer .if you have answer tell me otherwise leave it bro....

    All that Sam was saying is not to pick any post and add your question. The reason is "maintainability". Tomorrow when some want to surf for the answer for specific problem, it will be much confusing. That's one of the reason that Sam did not answer your question here. Highly recommend you to create a new post and ask your question. Do not ask a different question in a on going conversation.



  • Okay bro now On wards i will make new posts .....


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.