TestLeft can simulate user actions and access internal properties and methods of various Qt controls. You can also command your tests to recognize your custom controls as Qt controls to simulate user actions against them.
About Supported Qt Controls
TestLeft can simulate user actions against any Qt control via graphical user interface. In addition, TestLeft provides extended support for the most of Qt controls.
In your tests, you can cast these controls to appropriate interfaces that extend the control’s functionality with a number of additional methods and properties. Use those methods and properties to simulate various user actions over the controls, for example, select individual items or retrieve item text.
Supported Component Versions
TestLeft supports Qt controls ver. 5 and 6 by Digia, Qt.
You can also download modules that provide support for earlier Qt versions from our web site:
https://support.smartbear.com/downloads/testcomplete/qt-modules/
Supported Controls
TestLeft recognizes controls by their class name. Below is a full list of the Qt controls that TestLeft supports.
Controls | Classes |
---|---|
Push button |
QPushButton |
Calendar widget |
QCalendarWidget |
Check box |
QCheckBox |
Combo box |
QComboBox QFontComboBox |
Line edit |
QLineEdit |
List widget |
QListWidget |
Radio button |
QRadioButton |
Scroll bar |
QScrollBar |
Slider |
QSlider |
Tab widget |
QTabWidget |
Menu |
QMenu |
Tree widget |
QTreeWidget |
Table widget |
QTableWidget |
Menu bar |
QMenuBar |
Tool button |
QToolButton |
Spin box |
QSpinBox |
Double spin box |
QDoubleSpinBox |
Date-time edit |
QDateTimeEdit |
Text edit |
QTextEdit |
Recognizing Custom Controls
To command TestLeft to recognize your custom controls as Qt controls, cast your control to the interface of the appropriate type.
If your control does not fit the type of the control, for which the interface provides support, it may improperly respond to commands that TestLeft will send, and simulating user actions against your control may cause errors.