C++ Qt 27 - QTimer

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,614
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 29, 2011

Learn how to create and use timers

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (VoidRealms)

  • I'm programming in mac and i don't understand why I can't create the Q_OBJECT macro :( any help?

  • @J3L1P3 hmmm make sure Qt is installed?

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Hi Brian!

    Your tutorial is great!

    I've a problem with Qtimer, when I put Q_OBJECT in the class i receive this error: "undefined reference to `vtable for Mytimer'"

    How can I resolve?

  • A little annotation, if you include a library, it will include everything that is included in that library, so it's not necessary to include QtCore twice. Good videos!

  • @szisziszilvi you can remove the one in cpp

    it is not a problem

    the compiler will include it one time

  • @J3L1P3 run qmake

  • Hi, I would like to ask something you have done insome previous videos also. I would like to know why it is necessarry to include QtCore twice (once in the header and once in the cpp also)?

  • is it possible to use QTimer in MFC?

  • Thanks, but is there a way to start the timer by a button for example?

  • thank you very much

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more