Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt VS Tools: Cannot set version.
Forum Updated to NodeBB v4.3 + New Features

Qt VS Tools: Cannot set version.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GFCameron
    wrote on 10 Aug 2020, 14:17 last edited by
    #1

    Background:
    This was originally an old 32 bit VS2013/Qt5 project that I am trying to make a slight update to. Since VS2013 is no longer supported, I am opening it with VS2019. I have set %QT_DIR% to
    C:\Qt\QT_MSVC2013\Qt\5.5\msvc2013\Qt5.5_bin\qtbase

    I navigate to Extensions->Qt VS Tools -> Qt Options and see the QT Versions field is blank. The pulldown for Default Qt/Win version is also empty. So If I click Add and set $(QTDIR) I see what looks like the correct path greyed out below. If I then click OK the default version is not added. If I try to manually set a path and version, the same thing occurs.

    If I right click on the Solution Explorer and choose Set Solution's Qt Version I see $(DefaultQtVersion) under installed Qt Versions. So I choose "Ok" to close the window and attempt to build.

    But "Build Solution" immediately throws an error dialog
    "The following error occured:"
    There's no Qt version assigned to project for configuration Debug/Win32.
    Please assign a Qt installation in "Qt Project Settings".

    Unfortunately, I am stuck here. Nothing else I have found online seems to help solve the problem. Why does attempting to set the version just not stick?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 10 Aug 2020, 14:20 last edited by mrjj 8 Oct 2020, 14:20
      #2

      Hi and welcome to the forums
      Vs 2013 is not compatible with 2019 so you need a new Qt too
      for Vs 2019.
      2015 and 2017 and 2019 is compatible but as far as I know
      2013 is not.

      G 1 Reply Last reply 10 Aug 2020, 15:49
      1
      • M mrjj
        10 Aug 2020, 14:20

        Hi and welcome to the forums
        Vs 2013 is not compatible with 2019 so you need a new Qt too
        for Vs 2019.
        2015 and 2017 and 2019 is compatible but as far as I know
        2013 is not.

        G Offline
        G Offline
        GFCameron
        wrote on 10 Aug 2020, 15:49 last edited by
        #3

        @mrjj Thanks for the prompt update. I am currently using VS2019, only the project file and parts that are shipped are VS2013 compatible for legal reasons. The project was originally built using VS2013 and Qt5.5.

        For the moment, I am just trying to get the original stuff to build and link properly.

        M 1 Reply Last reply 10 Aug 2020, 16:45
        0
        • G GFCameron
          10 Aug 2020, 15:49

          @mrjj Thanks for the prompt update. I am currently using VS2019, only the project file and parts that are shipped are VS2013 compatible for legal reasons. The project was originally built using VS2013 and Qt5.5.

          For the moment, I am just trying to get the original stuff to build and link properly.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 10 Aug 2020, 16:45 last edited by
          #4

          @GFCameron
          Hi
          But the Qt5.5 will not work with VS2019 unless you have compiled
          Qt 5.5 yourself with vs2019.
          Qt is DLL based and VS2019 cannot load any DLLs made with Vs2013.
          So pointing it to C:\Qt\QT_MSVC2013\Qt\5.5
          will not work. Sorry.

          1 Reply Last reply
          1

          1/4

          10 Aug 2020, 14:17

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved