7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qdialog.h>
28#if QT_CONFIG(textedit)
32 Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags
33 WRITE setTextInteractionFlags)
38 DontUseNativeDialog = 0x00000001
70 NoButton = 0x00000000,
76 YesToAll = 0x00008000,
88 RestoreDefaults = 0x08000000,
91 LastButton = RestoreDefaults,
98 FlagMask = 0x00000300,
101#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
102 typedef StandardButton
Button;
111 StandardButtons buttons = NoButton,
QWidget *
parent =
nullptr,
127 StandardButtons standardButtons()
const;
137 void setEscapeButton(StandardButton
button);
153 void setTextInteractionFlags(Qt::TextInteractionFlags
flags);
154 Qt::TextInteractionFlags textInteractionFlags()
const;
161 void setOptions(
Options options);
166 StandardButton defaultButton = NoButton);
167#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
170 StandardButton button0, StandardButton button1 = NoButton)
171 {
return information(
parent,
title,
text, StandardButtons(button0), button1); }
175 const QString &
text, StandardButtons buttons = StandardButtons(Yes | No),
176 StandardButton defaultButton = NoButton);
177#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
180 StandardButton button0, StandardButton button1)
181 {
return question(
parent,
title,
text, StandardButtons(button0), button1); }
186 StandardButton defaultButton = NoButton);
187#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
190 StandardButton button0, StandardButton button1)
191 {
return warning(
parent,
title,
text, StandardButtons(button0), button1); }
196 StandardButton defaultButton = NoButton);
197#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
200 StandardButton button0, StandardButton button1)
201 {
return critical(
parent,
title,
text, StandardButtons(button0), button1); }
207#if QT_DEPRECATED_SINCE(6,2)
211 int button0,
int button1,
int button2,
213 Qt::WindowFlags
f =
Qt::Dialog |
Qt::MSWindowsFixedSizeDialogHint);
218 int button0,
int button1 = 0,
int button2 = 0);
225 int defaultButtonNumber = 0,
226 int escapeButtonNumber = -1);
231 int button0,
int button1 = 0,
int button2 = 0);
238 int defaultButtonNumber = 0,
239 int escapeButtonNumber = -1);
244 int button0,
int button1,
int button2 = 0);
251 int defaultButtonNumber = 0,
252 int escapeButtonNumber = -1);
257 int button0,
int button1,
int button2 = 0);
264 int defaultButtonNumber = 0,
265 int escapeButtonNumber = -1);
273 QString informativeText()
const;
276#if QT_CONFIG(textedit)
284#if QT_DEPRECATED_SINCE(6,2)
317#define QT_REQUIRE_VERSION(argc, argv, str) qRequireVersion(argc, argv, str);
The QCheckBox widget provides a checkbox with a text label.
The QCloseEvent class contains parameters that describe a close event.
The QDialog class is the base class of dialog windows.
void closeEvent(QCloseEvent *) override
\reimp
void keyPressEvent(QKeyEvent *) override
\reimp
virtual int exec()
Shows the dialog as a \l{QDialog::Modal Dialogs}{modal dialog}, blocking until the user closes it.
void resizeEvent(QResizeEvent *) override
\reimp
void showEvent(QShowEvent *) override
\reimp
The QKeyEvent class describes a key event.
The QLabel widget provides a text or image display.
The QMessageBox class provides a modal dialog for informing the user or for asking the user a questio...
void buttonClicked(QAbstractButton *button)
This signal is emitted whenever a button is clicked inside the QMessageBox.
Icon
This enum has the following values:
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
The QResizeEvent class contains event parameters for resize events.
The QShowEvent class provides an event that is sent when a widget is shown.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
@ MSWindowsFixedSizeDialogHint
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Q_WIDGETS_EXPORT void qRequireVersion(int argc, char *argv[], QAnyStringView req)
GLint GLsizei GLsizei GLenum format
static QT_BEGIN_NAMESPACE const uint Default
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
#define QT_REQUIRE_CONFIG(feature)
#define QT_DEPRECATED_VERSION_X_6_2(text)
msgBox setInformativeText("Do you want to save your changes?")
msgBox setDefaultButton(QMessageBox::Save)
msgBox setStandardButtons(QMessageBox::Save|QMessageBox::Discard|QMessageBox::Cancel)
myAction setIcon(SomeIcon)
insertRed setText("insert red text")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
virtual HRESULT STDMETHODCALLTYPE Close(void)=0