Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. vs2013 rebuilds everything everytime, qtcreator doesn't

vs2013 rebuilds everything everytime, qtcreator doesn't

Scheduled Pinned Locked Moved Qt Creator and other tools
vs2013qtcreator
2 Posts 2 Posters 1.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
    pmaynard
    wrote on 3 Apr 2015, 16:12 last edited by
    #1

    Using Visual studio plugin 1.2.4 with 5.4.x. Didn't have this problem with 5.2 and VS2012. Any suggestions (besides using only qtcreator)?

    I don't have to change any code. Just click the build button and everything rebuilds. The first compile task is always the moc step, so somehow it thinks the .moc files are stale. Then everything depending on the moc files gets rebuilt.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 3 Apr 2015, 16:55 last edited by
      #2

      I remember having this problem some time ago after updating Qt version.
      I'm not sure this was the only thing needed but make sure to remove the entire build directory and rebuild your project.

      If that doesn't help you might try this (possibly for each file that has Q_OBJECT macro):

      • remove (don't just comment out, remove entirely) the Q_OBJECT macro
      • save the file (this forces Qt plugin to remove generated files configuration for that file)
      • add the Q_OBJECT macro back
      • save the file (this will force Qt plugin to regenerate moc information for that file)

      Try this with one file and if it helps repeat with others.

      1 Reply Last reply
      0

      1/2

      3 Apr 2015, 16:12

      • Login

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