Create a Label and show : QLabel « Qt « C++






Create a Label and show

  

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QLabel label("Hello World");
    label.show();

    return a.exec();
}

   
    
  








Related examples in the same category

1.Adding image to QLabel
2.Add a label and display
3.Clock label
4.Set tooltip for QLabel
5.Set QLabel buddy
6.Using HTML with QLabel