#includeQMessageBox::information(this, "Information", "This is an example message");
#includeIn both examples, the Qt library is used to display the information box or message box.QMessageBox::StandardButton reply; reply = QMessageBox::warning(this, "Custom Warning", "Are you sure you want to delete this item?", QMessageBox::Yes | QMessageBox::No); if(reply == QMessageBox::Yes){ // delete the item } else { // do nothing }