Hi, all
I have code:
Qt Code:
#include <QtGui/QApplication> #include <QHBoxLayout> #include <QLabel> #include <QDateTime> #include <QString> #include <time.h> int main(int argc, char *argv[]) { QLabel* label; time_t seconds; QString milisec; seconds=time(NULL); date_f->setTime_t(seconds); milisec=date_f->toString(need_f); lyaout->addWidget(label); w->setWindowTitle("Try again"); w->setLayout(lyaout); w->show(); return a.exec(); }To copy to clipboard, switch view to plain text mode
date_f->setTime_t(seconds) don't return time in milliseconds.
Why is? What method can return time in milliseconds?
Thanks.
Bookmarks