I have a Qt project I am working on in Visual Studio 2010, with the Qt Visual Studio Add-in (for Qt 4.8). The project is running fine on my work machine, and I am trying to run it on my home machine. When I try to build, I get the following error:
There's no Qt version assigned to this project for platform Win32.
Please use the 'change Qt version' feature and choose a valid Qt version for this platform.
However, it's set up to use a valid Qt version (another project I'm working on at home uses this plugin as well). Why is this occurring? When I got to Qt -> Qt Options, I see a valid version (4.8.0). Thanks
Did you select a proper Qt version in the Qt settings of your project?
More detailed: If you right-click on the project there should be a "Qt Project Settings" option (or similar - I use the german version) near the end of the context menu. In there you can set the Qt version that this specific project uses. Is this one possibly not set correctly?
Solution:
Now, go ahead with your project.
Hope to help
Had the same problem with a x64 Visual Studio 2019 solution on Windows using Qt 5.15.0. Based on the answer from @Fabian and the excellent comment from @sitting-duck:
Qt VS Tools
extensionExtensions > Qt VS Tools > Qt Options
Qt Versions
tab click Add
Project Properties > Qt Project Settings > General > Qt Installation
Solution Explorer
tab) and select Change Solution's Qt Version
Qt-5.15.0
is selectedYou should be good to go.
Open vcxproj file in a notepad, look for QtVersion...something=... Ensure that the version value is really 4.8.0 (or whatever is your actual QT SDK version).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With