Results 1 to 4 of 4

Thread: QtTest example not compiling

  1. #1
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default QtTest example not compiling

    Hi everyone
    I ahve just started using Qt and am trying to get the example for QtTest working.
    When I comoile the example given I get the following errors


    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C3646: 'uint' : unknown override specifier
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C3646: 'qt_meta_data_TestQString' : unknown override specifier
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C2090: function returns array
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C2270: 'QTTEST_MAIN' : modifiers not allowed on nonmember functions
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(19) : error C2072: 'QTTEST_MAIN' : initialization of a function
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(22) : error C2078: too many initializers
    1>c:\VSProjects\xxxx\xxxx\GeneratedFiles\Debug\mai n.moc(44) : error C2065: 'qt_meta_data_TestQString' : undeclared identifier
    Does anyone know what I am doing wrong?

    Graham

  2. #2
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtTest example not compiling

    Hi Again
    Please can someone help?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtTest example not compiling

    Please describe step by step what you did to build the project.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtTest example not compiling

    Hi
    Thanks for replying - I started over this morning and now it is working - don't know why

Similar Threads

  1. QtTest - Am I missing the point
    By hubbobubbo in forum Qt Programming
    Replies: 3
    Last Post: 30th January 2010, 14:18
  2. QtTest problem compiling basic testcase
    By hubbobubbo in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2009, 11:38
  3. Displaying GUI events with QtTest
    By gavingc in forum Qt Programming
    Replies: 0
    Last Post: 25th August 2009, 13:02
  4. QtTest: Unittesting in several classes
    By Jojo in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2009, 12:38
  5. QtTest bug
    By graeme in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2006, 21:16

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
  •  
Qt is a trademark of The Qt Company.