Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

qt popup window

/** 
 * You can use a QMessageBox like this:
 * int output = QMessageBox::icon(this, tr("Title"), tr("content"),
 *							  QMessageBox::button, QMessageBox::defaultButton);
 */
//for example :
int ret = QMessageBox::warning(this, tr("My Application"),
                               tr("The document has been modified.
"
                                  "Do you want to save your changes?"),
                               QMessageBox::Save | QMessageBox::Discard
                               | QMessageBox::Cancel,
                               QMessageBox::Save);
Source by doc.qt.io #
 
PREVIOUS NEXT
Tagged: #qt #popup #window
ADD COMMENT
Topic
Name
3+6 =