68 myCustomObject->doSomething();
103 auto mo =
object.metaObject();
108 object.setObjectName(
"A new object name");
113 void tst_QWindow::writeMinMaxDimensionalProps_data()
118 for (
int i =
mo.propertyOffset();
i <
mo.propertyCount(); ++
i) {
119 auto property =
mo.property(
i);
124 const auto name =
property.name();
134 void tst_QWindow::writeMinMaxDimensionalProps()
136 QFETCH(
int, propertyIndex);
138 auto property = QWindow::staticMetaObject.property(propertyIndex);
small capitals from c petite p scientific i
[1]
The QCheckBox widget provides a checkbox with a text label.
const_reference at(qsizetype i) const noexcept
qsizetype count() const noexcept
The QObject class is the base class of all Qt objects.
QVariant property(const char *name) const
The QRegularExpression class provides pattern matching using regular expressions.
QRegularExpressionMatch match(const QString &subject, qsizetype offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const
bool wait(int timeout=5000)
The QString class provides a Unicode character string.
The QWindow class represents a window in the underlying windowing system.
for(int i=mo.propertyOffset();i< mo.propertyCount();++i)
[0]
QVERIFY(arguments.at(0).toBool()==true)
qRegisterMetaType< SomeStruct >()
[1]
QSignalSpy spy(myCustomObject, SIGNAL(mySignal(int, QString, double)))
[0]
QList< QVariant > arguments
QSignalSpy spy & model(whatever(SomeStruct))
auto it unsigned count const
void addColumn(const char *name, T *=nullptr)
Q_TESTLIB_EXPORT QTestData & addRow(const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
#define QFETCH(Type, name)