(C++) QMessageBox
February 24, 2017 · View on GitHub
(C++)
QMessageBox
QMessageBox is a Qt class to display a message box.
Technical facts
Operating system(s) or programming environment(s)
Lubuntu 13.04 (raring)
Qt Creator 2.7.0
- G++ 4.7.3
Libraries used:
Qt project file: CppQMessageBox.pro
QT += core gui CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp
main.cpp
#include <QApplication> #include <QMessageBox> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMessageBox b; b.setText("Hello world"); b.exec(); return a.exec(); }