Results 1 to 2 of 2

Thread: functions in QTime

  1. #1
    Join Date
    Mar 2013
    Posts
    43
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default functions in QTime

    Hi,
    Is there any functions to find the differnece and sum of two QTime objects.

    Please help me

  2. #2
    Join Date
    Dec 2008
    Location
    France
    Posts
    93
    Thanked 23 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: functions in QTime

    http://doc.qt.io/qt-4.8/qtime.html#msecsTo you get the difference from 2 times
    http://doc.qt.io/qt-4.8/qtime.html#addMSecs you can add an offset to a time and add two times with something like
    Qt Code:
    1. time1.addMSecs(QTime().msecTo(time2))
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QTime
    By dragon in forum Newbie
    Replies: 12
    Last Post: 16th February 2012, 11:40
  2. Help me qtime in qt?
    By tamnv110 in forum Newbie
    Replies: 7
    Last Post: 16th June 2011, 12:59
  3. QTime error?
    By roxton in forum Qt Programming
    Replies: 2
    Last Post: 19th October 2010, 23:06
  4. QTime
    By bismitapadhy in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 06:21
  5. QTime restart
    By jhowland in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2008, 21:18

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.