|
enum | ButtonType { ButtonNormal
, ButtonWarning
, ButtonRecommend
} |
|
enum | DisplayPosition { Center
, TopRight
} |
|
enum | DisplayPostion { DisplayCenter = Center
, DisplayTopRight = TopRight
} |
|
int | addButton (const QString &text, bool isDefault=false, ButtonType type=ButtonNormal) |
| 向对话框添加按钮. 更多...
|
|
int | addButtons (const QStringList &text) |
| 向对话框添加按钮. 更多...
|
|
void | insertButton (int index, const QString &text, bool isDefault=false, ButtonType type=ButtonNormal) |
| 向对话框插入按钮. 更多...
|
|
void | insertButton (int index, QAbstractButton *button, bool isDefault=false) |
| 向对话框插入按钮. 更多...
|
|
void | insertButtons (int index, const QStringList &text) |
| 向对话框插入按钮. 更多...
|
|
void | removeButton (int index) |
| 从对话框移除按钮. 更多...
|
|
void | removeButton (QAbstractButton *button) |
| 从对话框移除按钮. 更多...
|
|
void | removeButtonByText (const QString &text) |
| 从对话框移除按钮. 更多...
|
|
void | clearButtons () |
| 清除所有按钮.
|
|
bool | setDefaultButton (int index) |
| 设置默认按钮. 更多...
|
|
bool | setDefaultButton (const QString &str) |
| 设置默认按钮. 更多...
|
|
void | setDefaultButton (QAbstractButton *button) |
| 设置默认按钮 更多...
|
|
void | addContent (QWidget *widget, Qt::Alignment alignment={}) |
| 添加控件到对话框内容布局. 更多...
|
|
void | insertContent (int index, QWidget *widget, Qt::Alignment alignment={}) |
| 在对话框内容布局指定位置插入控件. 更多...
|
|
void | removeContent (QWidget *widget, bool isDelete=true) |
| 从对话框内容布局中移除指定控件. 更多...
|
|
void | clearContents (bool isDelete=true) |
| 清空对话框内容布局中的所有内容. 更多...
|
|
void | setSpacing (int spacing) |
| 设置对话框内容间隔. 更多...
|
|
void | addSpacing (int spacing) |
| 追加对话框内容间隔. 更多...
|
|
void | insertSpacing (int index, int spacing) |
| 插入对话框内容间隔. 更多...
|
|
void | clearSpacing () |
| 清除内容间隔. 更多...
|
|
void | setButtonText (int index, const QString &text) |
| 设置按钮文字. 更多...
|
|
void | setButtonIcon (int index, const QIcon &icon) |
| 设置按钮图标. index 需要设置图标的按钮的下标 icon 所需要设置的图标
|
|
void | setTitle (const QString &title) |
| 设置对话框标题. 更多...
|
|
void | setWordWrapTitle (bool wordWrap) |
| 设定标题Label内容是否可截断换行. 更多...
|
|
void | setMessage (const QString &message) |
| 设置对话框消息内容. 更多...
|
|
void | setWordWrapMessage (bool wordWrap) |
|
void | setIcon (const QIcon &icon) |
| 设置对话框图标. icon 对话框图标.
|
|
D_DECL_DEPRECATED void | setIcon (const QIcon &icon, const QSize &expectedSize) |
| 设置对话框图标. 这是为便于使用而提供的一个重载成员函数.与上面的函数相比,它接受不同类型的参数.为对话框设置图标,同时可以指定一个期望的图标大小。 更多...
|
|
D_DECL_DEPRECATED void | setIconPixmap (const QPixmap &iconPixmap) |
| 设置对话框位图图标. 更多...
|
|
void | setTextFormat (Qt::TextFormat textFormat) |
| 设置文字格式. textFormat 文字格式.
|
|
void | setOnButtonClickedClose (bool onButtonClickedClose) |
| 设置是否在点击按钮后关闭对话框. 更多...
|
|
void | setCloseButtonVisible (bool closeButtonVisible) |
|
int | exec () Q_DECL_OVERRIDE |
| 以模态框形式显示当前对话框. 更多...
|
|
void | moveToCenter () |
| DAbstractDialog::moveToCenter moves the dialog to the center of the screen or its parent widget. 更多...
|
|
void | moveToTopRight () |
| DAbstractDialog::moveToTopRight moves the dialog to the top right of the screen or its parent widget. 更多...
|
|
void | moveToCenterByRect (const QRect &rect) |
| DAbstractDialog::moveToCenterByRect moves the dialog to the center of the rect. rect is the target rect. 更多...
|
|
void | moveToTopRightByRect (const QRect &rect) |
| DAbstractDialog::moveToTopRightByRect moves the dialog to the top right corner of the rect. rect is the target rect. 更多...
|
|
void | setDisplayPosition (DisplayPosition displayPosition) |
| DAbstractDialog::setDisplayPosition sets the position of the dialog. displayPosition is the target position. 更多...
|
|
void | aboutToClose () |
|
void | closed () |
|
void | buttonClicked (int index, const QString &text) |
|
void | titleChanged (QString title) |
|
void | messageChanged (QString massage) |
|
void | textFormatChanged (Qt::TextFormat textFormat) |
|
void | sizeChanged (QSize size) |
|
void | visibleChanged (bool visible) |
|
void | sizeChanged (QSize size) |
| sizeChanged is emitted when the size of this dialog changed. size is the target size.
|
|
| DDialog (DDialogPrivate &dd, QWidget *parent=0) |
|
void | showEvent (QShowEvent *event) Q_DECL_OVERRIDE |
|
void | hideEvent (QHideEvent *event) Q_DECL_OVERRIDE |
|
void | closeEvent (QCloseEvent *event) override |
|
void | childEvent (QChildEvent *event) Q_DECL_OVERRIDE |
|
void | resizeEvent (QResizeEvent *event) override |
|
void | keyPressEvent (QKeyEvent *event) override |
|
bool | eventFilter (QObject *watched, QEvent *event) override |
|
void | mouseMoveEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
|
void | mousePressEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
|
void | mouseReleaseEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
|
void | resizeEvent (QResizeEvent *event) Q_DECL_OVERRIDE |
|
void | showEvent (QShowEvent *event) override |
|
| DAbstractDialog (DAbstractDialogPrivate &dd, QWidget *parent=nullptr) |
|
QString | title |
|
QString | message |
|
QIcon | icon |
|
Qt::TextFormat | textFormat |
|
bool | onButtonClickedClose |
|
bool | closeButtonVisible |
|
DisplayPosition | displayPosition |
|