Switch between 64-bit & 32-bit on Windows OS



  • Greetings,

    I'm new to the forum and am not an expert with QT, but I'm in charge of porting our application to 64-bit. We are using QT for our GUI and I have both the 32-bit & 64-bit installable version for QT. I have installed these in different locations on my development machine (we are using MS VS 2010) and I know all about the QTDIR environment variable, however I have discovered that during the installation of QT it sets some values in the registry that are used when building our application with QT.

    I'd really prefer to not edit my registry every time I switch between 32-bit & 64-bit builds, but so far I can seem to find any other way to do this. I have searched the forum and read a number of related discussions about this, but I was unable to find an answer to my problem.

    I would really appreciate any assistance you could provide.


  • Lifetime Qt Champion

    Hi and welcome to DevNet,

    Are you using VisualStudio as an IDE or QtCreator ?

    If Creator, you can make a Kit for your 32bit Qt and one for your 64bit. Then use each one whenever you want to build in one mode or the other.

    Hope it helps

    PS: It's Qt, QT is for Apple's QuickTime :)



  • You are using a Visual Studio Add-in?
    If so, you can add different versions of Qt: Qt -> Qt Options -> Qt Versions (Add button).
    Then you can choose the default version: Qt -> Qt Options -> Qt Versions (Default Qt/Win virsion).
    Customize your projects to use the default version.
    Switch default version if necessary.



  • Thanks for the replies! Yes, I am using Visual Studio as an IDE and we are using the VS Add-in v1.1.11. I located the settings that Kontantin mentioned and will give this a try and let you know if this works or not.

    P.S. Thanks for pointing out my improper usage of "QT".


Log in to reply
 

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