Results 1 to 2 of 2

Thread: QT + VS Addin, Problems with "generated files" folder. Moc results unavailable anymor

  1. #1
    Join Date
    Apr 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QT + VS Addin, Problems with "generated files" folder. Moc results unavailable anymor

    I've just had some problems which forced me to delete my "generated files" filter in Visual Studio. Now all moc'ed files won't appear inside visual studio anymore after/during compilation/moccing.

    In fact, the compilation will not work at all without tweaking, spend almost an hour on that now.
    Usually VS knew about that generated files an compiled all contentes before linking but now VS seems to be clueless about the moc'ed cpp files and deliver a lot of unresolved external errors on metaobject things that are creating in the moccing proccedure.

    I can get my project to build my manually adding the "generated files" folder and its contents to the project, but that's definately not as i'd like it to have.

    Does anyone know how i can restore the default behaviour?

  2. #2
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT + VS Addin, Problems with "generated files" folder. Moc results unavailable an

    If the GeneratedFiles don't auto add to the Visual Studio project do the following

    1. Delete all GeneratedFiles in VisualStudio and in explorer
    2. Comment the line Q_Object() of the .h file
    3. Compile
    4. Uncomment the Q_Object() line
    5. Compile again the file should appear in the solution
    6. For the resources and ui files just remove then from project and readd them the GeneratedFiles will appear.

    Hope it helps you

Similar Threads

  1. Replies: 4
    Last Post: 18th April 2010, 01:37
  2. Replies: 2
    Last Post: 28th February 2010, 08:38
  3. Implementing an "open recently opened files" menu?
    By joelthelion in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2009, 11:49
  4. Replies: 8
    Last Post: 5th August 2008, 13:09
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.