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. How to set moc on VS addin 1.1.6 and Qt 4.7.0

How to set moc on VS addin 1.1.6 and Qt 4.7.0

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.2k 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.
  • P Offline
    P Offline
    PigiRoN
    wrote on last edited by
    #1

    Vs addin 1.1.6 cannot automatically generate moc_???.cpp file...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      steno
      wrote on last edited by
      #2

      It can, are you using vs2010? I found in vs2010 i had to right click on the file->properties->Item Type->Custom Build tool. After that I did a save on the file and it auto generated all the pre build stuff for it.

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

        Both vs2010 & vs2008 have this problem...

        [quote author="steno" date="1285948281"]It can, are you using vs2010? I found in vs2010 i had to right click on the file->properties->Item Type->Custom Build tool. After that I did a save on the file and it auto generated all the pre build stuff for it.[/quote]

        1 Reply Last reply
        0
        • S Offline
          S Offline
          steno
          wrote on last edited by
          #4

          Wierd, works for me. All I do is add the Q_OBJECT macro and save the file and it generates everything needed to compile, both on 2010 and 2008....

          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