Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QMessageBox::StandardButton QMessageBox::warning ( QWidget parent,
const QString title,
const QString text,
StandardButtons  buttons = Ok,
StandardButton  defaultButton = NoButton 
) [static]

Since:
4.2
Opens a warning message box with the title title and the text text. The standard buttons buttons is added to the message box. defaultButton specifies the button be used as the defaultButton. If the defaultButton is set to QMessageBox::NoButton, QMessageBox picks a suitable default automatically.

Returns the identity of the standard button that was activated. If Esc was pressed, returns the {Default and Escape Keys}{escape button} (if any).

If parent is 0, the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.

See also:
question(), information(), critical()

Definition at line 1401 of file qmessagebox.cpp.

Referenced by QFileDialog::accept(), and Q3DataManager::handleError().

{
    return showNewMessageBox(parent, Warning, title, text, buttons, defaultButton);
}


Generated by  Doxygen 1.6.0   Back to index