Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: help needed in QMouseEvent

  1. #21
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: help needed in QMouseEvent

    Hi,

    as I told I don't know exactly if QTimer starts its own thread or the main-gui-thread is used for (what is more likely), but QTimer::start() calls QObject::startTimer() which does nasty things in d->threadData->eventDispatcher.
    Whereas QTime::currentTime() simply returns a QDate. So without deeper knowledge you can say QTime::currentTime() isn't so expensive. But to be true, the resource saving in that case isn't so much...

    Lykurg

  2. #22
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: help needed in QMouseEvent

    thanks to Lykurg, spirit , talk2amulya for spending their valuable time and helping me to solve the problem.

Similar Threads

  1. Qt4Libraries needed for using images
    By divya balachandran in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2009, 21:52
  2. Using Map in Qwt Widget..help needed
    By swamyonline in forum Qwt
    Replies: 2
    Last Post: 11th June 2008, 19:53
  3. Forward declarations needed for some?
    By doktorn in forum Newbie
    Replies: 6
    Last Post: 28th November 2007, 08:56
  4. How to get color of pixel or point by QMouseEvent
    By Krishnacins in forum Newbie
    Replies: 4
    Last Post: 28th May 2006, 01:46

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.