Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How connect QT to "Empty Project"(C++) in VS15

How connect QT to "Empty Project"(C++) in VS15

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    Alotas
    wrote on last edited by Alotas
    #1

    The project is launched, but there are problems:

    -I can not add a Q_OBJECT (LNK2001)

    -when creating a form (ui) by a template ("Object reference not set to an instance of an object")

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

      Hi and welcome to devnet,

      What project ?
      What IDE are you using ?
      Where does the template come from ?
      What version of Qt ?

      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
      0
      • A Offline
        A Offline
        Alotas
        wrote on last edited by Alotas
        #3

        C++ Empty Project or Win32
        (The general idea to manually connect Qt to project: include,lib,moc,etc)
        (Now I cant setting for generate moc file)
        IDE - Visual Studio 2015
        qt-vs-addin-msvc2015-2.0.0
        Qt5

        jsulmJ 1 Reply Last reply
        0
        • A Alotas

          C++ Empty Project or Win32
          (The general idea to manually connect Qt to project: include,lib,moc,etc)
          (Now I cant setting for generate moc file)
          IDE - Visual Studio 2015
          qt-vs-addin-msvc2015-2.0.0
          Qt5

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Alotas said in How connect QT to "Empty Project"(C++) in VS15:

          The general idea to manually connect Qt to project

          Is there a reason why you want to do it? Why not use QtCreator or Qt plug-in for Visual Studio?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Alotas said in How connect QT to "Empty Project"(C++) in VS15:

            The general idea to manually connect Qt to project

            Is there a reason why you want to do it? Why not use QtCreator or Qt plug-in for Visual Studio?

            A Offline
            A Offline
            Alotas
            wrote on last edited by
            #5

            @jsulm said in How connect QT to "Empty Project"(C++) in VS15:

            Is there a reason why you want to do it? Why not use QtCreator or Qt plug-in for Visual Studio?

            I need connect Qt to my main project

            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