Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Convert Qt project to Visual Studio with x64 build
Hi, I have a Qt project (.pro, etc.) and would like to convert it to Visual Studio project. Conversion creates x86 solution. How should I change .pro file so that the solution will be x64?
How should I change .pro file so that the solution will be x64?
This has nothing to do with the pro file but with the Qt version / qmake - for x64 you need a 64bit Qt.
@Christian-Ehrlicher But my Qt (5.11.2) is 64 bit: msvc2015_64.
So if Visual Studio plugin has an ability to check machine type, it must recognize x64.
When Qt is 64 bit the solution will also be created as 64bit. Especially when you create the solution with qmake on the 64bit vs command prompt.
@Christian-Ehrlicher The Qt project is not mine. I just convert it to the environment I'm used to (Visual Studio). Hence I'm not using qmake (although VS may use it internally - I don't know how the conversion works). I can change projects from Win32 to x64 manually after the conversion, but this is tedious.
Without a qmake or cmake project file you have to do it manually.
Never provide a vs solution as it's not portable (as you can see).
@YuriRzhanov I only have x64 Qt installed and conversion produces only x64 configs.
Do you have multiple Qt packages installed (32 and 64 bit)? If so which is set as default in Qt VS Tools?