Advertisement
tasuku

main.cpp

Jun 26th, 2014
213
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement