daily pastebin goal
57%
SHARE
TWEET

main.cpp

tasuku Jun 26th, 2014 27 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top