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. Qt 4.8.4 Visual Studio 2010, MOC files problems

Qt 4.8.4 Visual Studio 2010, MOC files problems

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 2.7k 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.
  • L Offline
    L Offline
    Larrikin
    wrote on last edited by
    #1

    Hi,

    Some information about my setup:
    I have a Qt 4.8.4 project and have recently started to use Visual Studio 2010.
    I use Team Foundation Server 2008 for source control of the project.
    I use the Visual Studio Add-in 1.1.11 for Qt4.

    I have managed to get the project to build properly in VS 2010 but I have an annoying problem:

    Problem
    Everytime I create a new Qt class (Project-->Add Class-->Qt4 Classes --> Qt4GuiClass) VS2010 automatically generate the MOC files in GeneratedFiles folder. My problem is that the MOC files is also added to "Pending Changes" and the moc files are also set to "Exclude from build".

    I want to include the moc files in the build of course but I do not want to add the moc files as pending changes since I do not want to source control generated files.

    I can not find a way to exclude the GeneratedFiles folder from source control and I can also not find a way to stop VS2010 to add moc files to pending changes and set them to "Exclude from build".

    Anyone know how to fix this?

    Any help is much appreciated!

    Best regards,
    Henrik

    1 Reply Last reply
    0
    • 3 Offline
      3 Offline
      3.141592
      wrote on last edited by
      #2

      Why not using the QtCreator?
      It works really well and knows about MOC files and how to handle them ;)
      maybe it is an option for you

      kind regards
      christian

      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