Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Is it possible to use Qt4 from VS 2017 using addin 2.2.2?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to use Qt4 from VS 2017 using addin 2.2.2?

Scheduled Pinned Locked Moved Solved 3rd Party Software
4 Posts 2 Posters 1.5k Views
  • 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.
  • T Offline
    T Offline
    thesourcehim
    wrote on last edited by
    #1

    I need to compile my old application with qt 4.8.7 in Visual Studio 2017. I compiled Qt 4.8.7 for VS 2017 and added it into Qt sets in addin options. However building fails because wrong parameters are passed to moc.exe (moc from qt4 has somewhat different flags). Does current addin support Qt4? I can build my application using qmake/nmake combination, but that is not very convenient.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thesourcehim
      wrote on last edited by thesourcehim
      #4

      Solved it, I just needed to generate visual studio project file using qmake, addin not even required.
      qmake.exe -tp vc myapp.pro

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Delphi251189
        wrote on last edited by
        #2

        What You mean about 'compile my old application with qt 4.8.7 in Visual Studio 2017' ?
        If Visual studio 2017 IDE, the short answer is NO, because Qt4 plugin for visual studio doesn't support Visual Studio 2017 IDE.
        But in other side saying 'NO' means that VC2017 IDE just can not parse .pro file and run qt-specific tools automatically.
        Whatever You can use Visual Studio 2017 IDE and run moc, uic, rcc and other tools , customize Your project include, lib parameters manually (IMO).

        1 Reply Last reply
        0
        • T Offline
          T Offline
          thesourcehim
          wrote on last edited by
          #3

          Well, I was able to make it a little further by removing Compiler Flavor and Include values from moc project options. However, rcc fails with unknown parameter --name (it should be -name for qt4 rcc) and I didn't found the way to avoid it for now.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thesourcehim
            wrote on last edited by thesourcehim
            #4

            Solved it, I just needed to generate visual studio project file using qmake, addin not even required.
            qmake.exe -tp vc myapp.pro

            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