32 Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
33 Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
34 Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
35 Q_PROPERTY(QPlatformDialogHelper::StandardButtons standardButtons READ standardButtons WRITE setStandardButtons NOTIFY standardButtonsChanged FINAL)
37 Q_PROPERTY(
int result READ result WRITE setResult NOTIFY resultChanged FINAL REVISION(2, 3))
38 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
40 Q_PROPERTY(qreal implicitHeaderWidth READ implicitHeaderWidth NOTIFY implicitHeaderWidthChanged FINAL REVISION(2, 5))
41 Q_PROPERTY(qreal implicitHeaderHeight READ implicitHeaderHeight NOTIFY implicitHeaderHeightChanged FINAL REVISION(2, 5))
42 Q_PROPERTY(qreal implicitFooterWidth READ implicitFooterWidth NOTIFY implicitFooterWidthChanged FINAL REVISION(2, 5))
43 Q_PROPERTY(qreal implicitFooterHeight READ implicitFooterHeight NOTIFY implicitFooterHeightChanged FINAL REVISION(2, 5))
44 QML_NAMED_ELEMENT(Dialog)
45 QML_ADDED_IN_VERSION(2, 1)
48 explicit QQuickDialog(QObject *parent =
nullptr);
51 QString title()
const;
52 void setTitle(
const QString &title);
54 QQuickItem *header()
const;
55 void setHeader(QQuickItem *header);
57 QQuickItem *footer()
const;
58 void setFooter(QQuickItem *footer);
60 QPlatformDialogHelper::StandardButtons standardButtons()
const;
61 void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons);
62 Q_REVISION(2, 3) Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button)
const;
65 enum StandardCode { Rejected, Accepted };
69 void setResult(
int result);
72 qreal implicitHeaderWidth()
const;
73 qreal implicitHeaderHeight()
const;
75 qreal implicitFooterWidth()
const;
76 qreal implicitFooterHeight()
const;
78 void setOpacity(qreal opacity) override;
81 virtual void accept();
82 virtual void reject();
83 virtual void done(
int result);
91 void standardButtonsChanged();
93 Q_REVISION(2, 3)
void applied();
94 Q_REVISION(2, 3)
void reset();
95 Q_REVISION(2, 3)
void discarded();
96 Q_REVISION(2, 3)
void helpRequested();
97 Q_REVISION(2, 3)
void resultChanged();
99 void implicitHeaderWidthChanged();
100 void implicitHeaderHeightChanged();
101 void implicitFooterWidthChanged();
102 void implicitFooterHeightChanged();
105 QQuickDialog(QQuickDialogPrivate &dd, QObject *parent);
107#if QT_CONFIG(accessibility)
108 QAccessible::Role accessibleRole()
const override;
109 void accessibilityActiveChanged(
bool active) override;
113 Q_DISABLE_COPY(QQuickDialog)
114 Q_DECLARE_PRIVATE(QQuickDialog)