qt qmessagebox

Solutions on MaxInterview for qt qmessagebox by the best coders in the world

showing results for - "qt qmessagebox"
Sara
19 Mar 2020
1/** 
2 * int output = QMessageBox::icon(this, tr("Title"), tr("content"),
3 *							  QMessageBox::button, QMessageBox::defaultButton);
4 */
5//for example :
6int ret = QMessageBox::warning(this, tr("My Application"),
7                               tr("The document has been modified.\n"
8                                  "Do you want to save your changes?"),
9                               QMessageBox::Save | QMessageBox::Discard
10                               | QMessageBox::Cancel,
11                               QMessageBox::Save);