Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Still getting "There's no Qt version assigned to this project...." error.



  • Hello,

    I have found a number of posts talking about this problem and the resolution to it. Essentially, I am attempting to build a Qt application from within Visual Studio using the Qt Vs Tools plugin. The project was initially x86, and when switching it to x64 I began running into the following error:

    0_1536607721878_91a0dfcd-b55b-4e6b-80a3-0e760b229af0-image.png

    "There's no Qt version assigned to this project for platform x64. Please use the 'change Qt version' feature and choose a valid Qt version for this platform.

    Here's the problem: it looks as though it's already setup.

    First, here is my Qt Options that's Visual Studio-wide:

    0_1536607961175_f5b065d0-6e01-4c9c-b3a8-0e2cea097271-image.png

    Second, when the project is set to build as 64 bit, I go to project > Qt project settings and I get the following (which hints that it's configured):

    0_1536607577645_f62e4f4c-4b05-44fc-b096-993a5c3ecfce-image.png

    Next, I went into my vcxproj file, as other threads have instructed, and added the following:

    0_1536607639080_0887ecf8-1ca1-49ec-be0b-671f28481e59-image.png

    Closing Visual Studio and reopening it, I get the same error every time. This appears to be an issue that's been going on for years (judging by the dates on some of the threads I'm seeing). I just recently installed the plugin, and I'm using VS 2017 on Windows 10. As far as I can tell, everything is up to date.



  • Although it may not be why you are getting the problem, I believe you would be better off pointing at a msvc2017_64 folder if you are using VS 2017.
    Another issue is that the Win32 version is pointing at the *_64 folder, though unless you're running such a build I don't think this will cause a problem.
    I am surprised you have a UicDir without a MocDir in the vcxproj and that the lupdateOnBuild also doesn't show up. It looks like the VS ui and the xml aren't synced up.
    Also, make sure that you have the version coded in for every vcxproj file that uses qt.


Log in to reply