Results 1 to 4 of 4

Thread: QTimer not found

  1. #1
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question QTimer not found

    Hi@all

    I've tried to compile this programm...
    but the compiler gives me a error:

    ...Cannons\cannonfield.cpp|1|QDateTime: No such file or directory|
    ...Cannons\cannonfield.cpp|4|QTimer: No such file or directory|
    I hope you can help me...

    P.S.: I'm sorry for my English... I'm from Germany

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTimer not found

    How did you install Qt? What commands did you take to compile the sample app? What does "qmake -v" output?
    J-P Nurmi

  3. #3
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTimer not found

    I downloaded and installed QT 4.3.4 from the Trolltech website. I'm using the Code::Blocks IDE with GNU GCC compiler.
    I just told Code::Blocks the location from QT and it worked...
    The files QTimer.h and QDateTime.h exists...
    But the compiler gives me a error
    What should I do?

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTimer not found

    So, looks like it's a problem "how to setup Code::Blocks with Qt". You might want to search these or Code::Blocks forums. There have been some threads about setting up Code::Blocks with Qt. To assure your Qt installation functions, you could launch "Qt Command Prompt" from Start-menu and invoke command qmake & make in the project directory. This way it should compile fine.
    J-P Nurmi

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 06:21
  2. QThread/QObject and QTimer
    By swiety in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2008, 08:37
  3. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  4. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  5. Replies: 5
    Last Post: 6th March 2007, 05:34

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.