QTime

#include <QtCore/QTime>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QTime


Overview

Public Functions Index

QTime ()
QTime (int h, int m, int s=0, int ms=0)
QTimeaddMSecs (int ms) const
QTimeaddSecs (int secs) const
intelapsed () const
inthour () const
boolisNull () const
boolisValid () const
intminute () const
intmsec () const
intmsecsTo (const QTime &) const
booloperator!= (const QTime &other) const
booloperator< (const QTime &other) const
booloperator<= (const QTime &other) const
booloperator== (const QTime &other) const
booloperator> (const QTime &other) const
booloperator>= (const QTime &other) const
intrestart ()
intsecond () const
intsecsTo (const QTime &) const
boolsetHMS (int h, int m, int s, int ms=0)
voidstart ()
QStringtoString (Qt::DateFormat f=Qt::TextDate) const
QStringtoString (const QString &format) const

Static Public Functions Index

QTimecurrentTime ()
QTimefromString (const QString &s, Qt::DateFormat f=Qt::TextDate)
QTimefromString (const QString &s, const QString &format)
boolisValid (int h, int m, int s, int ms=0)

Public Functions

QTime ()

QTime (
  • inth,
  • intm,
  • ints,
  • intms )

QTime addMSecs (
  • intms)

QTime addSecs (
  • intsecs)

int elapsed ()

int hour ()

bool isNull ()

bool isValid ()

int minute ()

int msec ()

int msecsTo (

bool operator!= (

bool operator< (

bool operator<= (

bool operator== (

bool operator> (

bool operator>= (

int restart ()

int second ()

int secsTo (

bool setHMS (
  • inth,
  • intm,
  • ints,
  • intms )

void start ()

QString toString (
  • Qt::DateFormatf)

QString toString (

Static Public Functions

QTime currentTime ()

QTime fromString (
  • const QString &s,
  • Qt::DateFormatf )

QTime fromString (

bool isValid (
  • inth,
  • intm,
  • ints,
  • intms )

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus