Results 1 to 4 of 4

Thread: Problem with Qt Unit Test

  1. #1
    Join Date
    Sep 2010
    Posts
    36
    Thanks
    1

    Default Problem with Qt Unit Test

    Hello.

    I can't compile a Qt Unit Test Project which was created by the wizard (Qt 4.7.3 / Windows - MinGW 4.4 - QtCreator 2.2).

    If I hit the run button I get the message:

    [debug/tst_Qtest03Test.moc] Error 1
    file not found
    What is the problem?

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with Qt Unit Test

    The problem is that the Qtest03Test.moc file was not found - simples

    And seriously - clear the project and run qmake, most of the time it fixes problems with missing *.moc files.

  3. #3
    Join Date
    Sep 2010
    Posts
    36
    Thanks
    1

    Default Re: Problem with Qt Unit Test

    Quote Originally Posted by Spitfire View Post
    And seriously - clear the project and run qmake, most of the time it fixes problems with missing *.moc files.
    Unfortunately not

    It still doesn't work.

  4. #4
    Join Date
    Dec 2010
    Location
    Versailles
    Posts
    6
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Problem with Qt Unit Test

    Could you post an example with what you are trying to do ?

Similar Threads

  1. How can we make unit test for multithread in QT
    By learning_qt in forum Qt Programming
    Replies: 8
    Last Post: 15th January 2013, 16:09
  2. Problem when linking a Qt Unit Test with CMake
    By NoRulez in forum Qt Programming
    Replies: 6
    Last Post: 10th June 2010, 17:30
  3. Unit test coverage
    By leoalvesmachado in forum Newbie
    Replies: 3
    Last Post: 16th April 2010, 13:48
  4. Unit Test Organisation, and having qmake what I want
    By jrharshath in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2009, 18:59
  5. How to unit test a Qt Gui
    By mitskits in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2006, 07:36

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.