Advertisement
tasuku

main.cpp

Jun 26th, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <QtWidgets>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication app(argc, argv);
  6.  
  7. QLabel label(QStringLiteral("Hello World!"));
  8. label.resize(250, 100);
  9. label.show();
  10.  
  11. QTimer timer;
  12. QObject::connect(&timer, &QTimer::timeout, [&]() {
  13. label.setWindowTitle(QTime::currentTime().toString());
  14. });
  15. timer.start(100);
  16. return app.exec();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement