qt messagebox

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

showing results for - "qt messagebox"
Ousmane
18 Jan 2018
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);