57 "This test is used to verify that popup windows will be closed "
58 "as expected. This includes when clicking outside the popup or moving the "
59 "parent window. Tested popups include context menus, combo box popups, tooltips "
60 "and QWindow with Qt::Popup set."
63 explanation->setToolTip(
"I'm a tool tip!");
85 toolButton->setMenu(menu);
87 toolButton->
setText(
"select me");
104 layout->addWidget(explanation);
105 layout->addWidget(toolButton);
107 layout->addWidget(comboBox);
108 layout->addWidget(pushButton);
124 window->setPosition(this->
pos());
138 int main(
int argc,
char *argv[])
The QAction class provides an abstraction for user commands that can be added to different user inter...
QString text
the action's descriptive text
The QApplication class manages the GUI application's control flow and main settings.
The QComboBox widget is a combined button and popup list.
void addItem(const QString &text, const QVariant &userData=QVariant())
friend class QPushButton
[1]
The QGroupBox widget provides a group box frame with a title.
The QLabel widget provides a text or image display.
void setWordWrap(bool on)
The QLineEdit widget is a one-line text editor.
void setPlaceholderText(const QString &)
void setText(const QString &)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QVBoxLayout class lines up widgets vertically.
The QWindow class represents a window in the underlying windowing system.
[Window class definition]
void triggered(QAction *)
int main(int argc, char **argv)
QString tr(const char *text)
QApplication app(argc, argv)
[0]