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. Create a GUI with Qt for my code developed in C++/CLI with VS2017
Forum Updated to NodeBB v4.3 + New Features

Create a GUI with Qt for my code developed in C++/CLI with VS2017

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 388 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.
  • D Offline
    D Offline
    darteaga1522
    wrote on 30 May 2019, 21:42 last edited by
    #1

    Hi Qt community

    I am new in this Qt world and I wonder how is the easy way to create a simple GUI for my code, which has been developed in C++ with VS2017. What I tried is to integrate Qt for VS2017 (Qt VS Tools) and I created a simple FirstQt example that just closes the window, but now that I have added part of my code for image mosaicking (based on openMVG libraries), it output 2 error messages:

    • the argument to a feature-test macro must be a simple identifier
    • moc (C:\Qt\5.12.3\msvc2017_64\bin\moc.exe)

    Is there a way to fix these errors and continue working with Qt VS Tools? What are other options to use exactly the same code I implemented?

    Thank you in advance

    Daniel

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 1 Jun 2019, 07:33 last edited by
      #2

      Hi
      If the mosaicking code is pure c++, it should be no issue mixing in some Qt.

      For the error
      "the argument to a feature-test macro must be a simple identifier"
      there is no file name or line number to give hints ?

      1 Reply Last reply
      3
      • D Offline
        D Offline
        darteaga1522
        wrote on 13 Jun 2019, 13:55 last edited by
        #3

        Hi @mrjj

        Yeah, the mosaicking code is in pure c++ and I used the library openMVG.

        The error points the line in which Q_OBJECT was defined inside any class, and I think it happens when you have an error which your code inside that class. I noticed one error inside my code and when I fix it, this moc error fixed too.

        Thank you

        1 Reply Last reply
        3

        • Login

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