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. No automatic moc with Add-in in VS2012?
Qt 6.11 is out! See what's new in the release blog

No automatic moc with Add-in in VS2012?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.2k 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
    D0IT
    wrote on last edited by
    #1

    Hi,
    is it correct that the Visual Studio Add-in (version 1.2.0 and 1.2.1RC) isn't automatically generating the build rules for moc/uic/rcc when I insert Q_OBJECT macro?

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

      Is noone using the new add-in with VS2012? :(

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        [quote author="D0IT" date="1364539440"]Is noone using the new add-in with VS2012? :([/quote]

        In general the feedback on vsaddin related topics is little in this forum. This is based on my experience over time. I suspect that most people are using Qt creator together with these compilers.

        I am using MSVC 2005 with vsaddin 1.1.11.
        I have done a short trial to verify, because I was not sure about the addin's behavior. In a Qt project I have added a normal class and added manually QObject and the Q_OBJECT macro in the header. To my surprise while compiling it picked up the change without any additional interaction. moc was called immediately.
        In a simple ms console project you would run into another issue that the QObject header file would not be found.
        Probably you should check and file a bug report on "JIRA.":https://bugreports.qt-project.org/secure/Dashboard.jspa

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          D0IT
          wrote on last edited by
          #4

          Thanks for the reply. I was working with VS2010 and the pre Qt5 add-in until a few weeks ago and everything was working fine there, too. However, we now have upgraded to VS2012, mainly because of the additional C++11 features and it's quite annoying to work without the Build steps being generated automatically.
          The Qt Bug Tracker was the first place, where I was looking for information about this and was already wondering why noone had complained about it yet. Thus, I thought it mighy be something wrong on my installation and just wanted to get some feedback here first.
          I think I'll file a report there shortly and see what information I can get from there.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            It is certainly a good idea to check first in this forum.
            As already noted above there are no many paying attention to vsaddin issues in this forum.
            After being accustomed to msvc for a very long I decided to use for C++11 features and therefore I have started to use Qt creator with MinGW. Actually the main reason was also to have the same IDE for my rare excursions to linux platforms. ;-)

            When you have filed the bug report, it is always good to post the report number here. This gives others the opportunity to vote for it which raises the level of importance. Even so, this might be less the case for vsaddin :(

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • D Offline
              D Offline
              D0IT
              wrote on last edited by
              #6

              Added to "JIRA":https://bugreports.qt-project.org/browse/QTVSADDINBUG-155

              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