QTime time; time.setHMS(13, 30, 0);
QTime time; time = QTime::currentTime();In this example, we create an instance of the QTime class called `time`. We then use the static method `currentTime` to set the value of `time` to the current system time. Package library: Qt Core Library (QtCore)