21myCustomObject->doSomething();
53auto mo =
object.metaObject();
58object.setObjectName(
"A new object name");
63void tst_QWindow::writeMinMaxDimensionalProps_data()
64 QTest::addColumn<
int>("propertyIndex");
67 static const auto
mo =
QWindow::staticMetaObject;
68 for (
int i =
mo.propertyOffset();
i <
mo.propertyCount(); ++
i) {
69 auto property =
mo.property(
i);
72 if (
property.type() == QVariant::Int) {
74 const auto name =
property.name();
77 if (re.match(
name).hasMatch()) {
84void tst_QWindow::writeMinMaxDimensionalProps()
86 QFETCH(
int, propertyIndex);
88 auto property = QWindow::staticMetaObject.property(propertyIndex);
The QCheckBox widget provides a checkbox with a text label.
const_reference at(qsizetype i) const noexcept
qsizetype count() const noexcept
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool toBool() const
Returns the variant as a bool if the variant has userType() Bool.
int typeId() const
Returns the storage type of the value stored in the variant.
for(int i=mo.propertyOffset();i< mo.propertyCount();++i)
[3]
qRegisterMetaType< SomeStruct >()
[1]
QSignalSpy spy(myCustomObject, SIGNAL(mySignal(int, QString, double)))
[0]
QList< QVariant > arguments
Q_TESTLIB_EXPORT QTestData & addRow(const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
GLsizei const GLint * box
#define QFETCH(Type, name)
#define QCOMPARE(actual, expected)
#define QVERIFY(statement)
QSqlQueryModel * model
[16]