Свойства
StandardButton | defaultButton READ |
string | detailedText READ / WRITE |
Icon | icon READ / WRITE |
string | informativeText READ / WRITE |
bool | modal READ / WRITE |
StandardButton | standardButtons READ |
string | text READ / WRITE |
Методы
void | addButton ( string text, ButtonRole role ) |
void | addButton ( StandardButton button ) |
int | critical ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL ) |
int | critical ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL ) |
string | detailedText ( ) |
Icon | icon ( ) |
int | information ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL ) |
int | information ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL ) |
string | informativeText ( ) |
bool | isModal ( ) |
int | question ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL ) |
int | question ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL ) |
void | setDefaultButton ( StandardButton button ) |
void | setStandardButtons ( StandartButton button ) |
string | text ( ) |
int | warning ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL ) |
int | warning ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL ) |
Слоты
void | exec ( ) |
void | setDetailedText ( string text ) |
void | setIcon ( Icon icon ) |
void | setInformativeText ( string text ) |
void | setModal ( bool modal ) |
void | setText ( string text ) |
Описание методов
void QMessageBox::addButton ( string text, ButtonRole role )
void QMessageBox::addButton ( StandardButton button )
int QMessageBox::critical ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL )
int QMessageBox::critical ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL )
string QMessageBox::detailedText ( )
int QMessageBox::information ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL )
int QMessageBox::information ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL )
string QMessageBox::informativeText ( )
int QMessageBox::question ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL )
int QMessageBox::question ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL )
void QMessageBox::setDefaultButton ( StandardButton button )
void QMessageBox::setStandardButtons ( StandartButton button )
int QMessageBox::warning ( QWidget parent, string title, string text, StandardButton button0, StandardButton button1 = NULL, StandardButton button2 = NULL )
int QMessageBox::warning ( QWidget parent, string title, string text, string button0Text, string button1Text = NULL, string button2Text = NULL )
Описание слотов
void QMessageBox::setDetailedText ( string text )
void QMessageBox::setIcon ( Icon icon )
Устанавливает иконку из стандартного набора по её индексу.
void QMessageBox::setInformativeText ( string text )
void QMessageBox::setModal ( bool modal )
void QMessageBox::setText ( string text )
comments powered by HyperComments