54 #include <QGridLayout>
69 echoComboBox->
addItem(
tr(
"PasswordEchoOnEdit"));
74 echoLineEdit->setFocus();
82 validatorComboBox->
addItem(
tr(
"No validator"));
83 validatorComboBox->
addItem(
tr(
"Integer validator"));
84 validatorComboBox->
addItem(
tr(
"Double validator"));
96 alignmentComboBox->
addItem(
tr(
"Centered"));
108 inputMaskComboBox->
addItem(
tr(
"No mask"));
109 inputMaskComboBox->
addItem(
tr(
"Phone number"));
110 inputMaskComboBox->
addItem(
tr(
"ISO date"));
111 inputMaskComboBox->
addItem(
tr(
"License key"));
145 echoLayout->
addWidget(echoComboBox, 0, 1);
146 echoLayout->
addWidget(echoLineEdit, 1, 0, 1, 2);
152 validatorLayout->
addWidget(validatorLabel, 0, 0);
153 validatorLayout->
addWidget(validatorComboBox, 0, 1);
154 validatorLayout->
addWidget(validatorLineEdit, 1, 0, 1, 2);
155 validatorGroup->
setLayout(validatorLayout);
158 alignmentLayout->
addWidget(alignmentLabel, 0, 0);
159 alignmentLayout->
addWidget(alignmentComboBox, 0, 1);
160 alignmentLayout->
addWidget(alignmentLineEdit, 1, 0, 1, 2);
161 alignmentGroup->
setLayout(alignmentLayout);
164 inputMaskLayout->
addWidget(inputMaskLabel, 0, 0);
165 inputMaskLayout->
addWidget(inputMaskComboBox, 0, 1);
166 inputMaskLayout->
addWidget(inputMaskLineEdit, 1, 0, 1, 2);
167 inputMaskGroup->
setLayout(inputMaskLayout);
170 accessLayout->
addWidget(accessLabel, 0, 0);
171 accessLayout->
addWidget(accessComboBox, 0, 1);
172 accessLayout->
addWidget(accessLineEdit, 1, 0, 1, 2);
185 setWindowTitle(
tr(
"Line Edits"));
222 999.0, 2, validatorLineEdit));
226 validatorLineEdit->
clear();
259 inputMaskLineEdit->
setText(
"00000000");
263 inputMaskLineEdit->
setInputMask(
">AAAAA-AAAAA-AAAAA-AAAAA-AAAAA;#");
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
The QComboBox widget is a combined button and popup list.
void activated(int index)
void addItem(const QString &text, const QVariant &userData=QVariant())
The QDoubleValidator class provides range checking of floating-point numbers. \inmodule QtGui.
The QGridLayout class lays out widgets in a grid.
void addWidget(QWidget *w)
The QGroupBox widget provides a group box frame with a title.
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
The QLabel widget provides a text or image display.
The QLineEdit widget is a one-line text editor.
void setValidator(const QValidator *)
void setAlignment(Qt::Alignment flag)
void setPlaceholderText(const QString &)
void setInputMask(const QString &inputMask)
void setCursorPosition(int)
void setText(const QString &)
void setEchoMode(EchoMode)
void validatorChanged(int)
[9]
void accessChanged(int)
[12]
void inputMaskChanged(int)
[11]
void alignmentChanged(int)
[10]
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent