Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Tools on VS 2019

Qt Tools on VS 2019

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 1.8k 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.
  • P Offline
    P Offline
    PaulFortescue
    wrote on last edited by
    #1

    Hello, first time here, so please be gentle!

    An application I'm trying to work with has specified VS 2019 and the QT Tools extension. I've installed ...

    VS 2019
    Qt5
    Qt6
    MinGW - to get round the 'can't find G++'

    I've never been able to configure a version in Qt Tools in VS - initially it wouldn't do G++, but I've installed that, added to path and moved along. Now, I'm getting these errors - below.

    Be very grateful for advice as to what I'm doing wrong here, many thanks, Paul

    == Qt Visual Studio Tools version 2.7.1 (rev.15)

    Initialized in: 684.73 msecs
    Main (UI) thread: 257.9 msecs

    --- qmake(21288): started C:\QT6\6.0.3\MINGW81_64\bin\qmake.exe
    --- qmake: Querying persistent properties
    --- qmake(21288): exit code 0 (119.8 msecs)

    --- qmake(21220): started C:\QT6\6.0.3\MINGW81_64\bin\qmake.exe
    --- qmake: Working Directory: C:\Users\pf00175\AppData\Local\Temp\ai5nwfab.4lm
    --- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "ai5nwfab.4lm.vcxproj" -tp vc -Wnone "ai5nwfab.4lm.pro"
    Info: creating stash file C:\Users\pf00175\AppData\Local\Temp\ai5nwfab.4lm.qmake.stash
    QIODevice::write: device not open
    QIODevice::write: device not open
    --- qmake(21220): exit code 0 (4775.62 msecs)

    Error reading VS project settings

    Stacktrace:
    at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
    at QtVsTools.Core.VersionInformation.Get(String qtDir)
    at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage()
    --- qmake(10060): started C:\QT5\5.15.2\MINGW81_64\bin\qmake.exe
    --- qmake: Querying persistent properties
    --- qmake(10060): exit code 0 (269.24 msecs)

    --- qmake(7116): started C:\QT5\5.15.2\MINGW81_64\bin\qmake.exe
    --- qmake: Working Directory: C:\Users\pf00175\AppData\Local\Temp\n52skgce.2z5
    --- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "n52skgce.2z5.vcxproj" -tp vc -Wnone "n52skgce.2z5.pro"
    Info: creating stash file C:\Users\pf00175\AppData\Local\Temp\n52skgce.2z5.qmake.stash
    QIODevice::write: device not open
    QIODevice::write: device not open
    --- qmake(7116): exit code 0 (3097.99 msecs)

    Error reading VS project settings

    Stacktrace:
    at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
    at QtVsTools.Core.VersionInformation.Get(String qtDir)
    at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage()

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If you want to use Qt with Visual Studio 2019, then you have to install the corresponding Visual Studio build of Qt.

      You can't mix and match C++ libraries built with MinGW and Visual Studio. Even Visual Studio only recently started to be backward compatible.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • P Offline
        P Offline
        PaulFortescue
        wrote on last edited by
        #3

        Thanks for taking the time to help - so I think I therefore need a mvsc version of qt - but I can't find anywhere to download them on the open source side. I can't see an explicit statement from qt, but it seems that if the target platform is windows, then you have to have the commercial license? Would that be true

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @PaulFortescue said in Qt Tools on VS 2019:

          but I can't find anywhere to download them on the open source side. I can't see an explicit statement from qt, but it seems that if the target platform is windows, then you have to have the commercial license? Would that be true

          That's wrong, all the versions are available through the online installer. You have to select the correct options that's all.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • P Offline
            P Offline
            PaulFortescue
            wrote on last edited by
            #5

            Thanks very much again - that has solved it for me.

            my version was buried deep - but I did find it eventually .

            1 Reply Last reply
            0

            • Login

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