Advertisement
Felanpro

Add labels/text

Jul 3rd, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <QApplication>
  2. #include <QLabeL> //Allow labels.
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.     QApplication prog(argc, argv);
  7.     QLabel *label = new QLabel("Hello world."); //declare label.
  8.     label->show(); //Display label.
  9.  
  10.     return prog.exec();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement