QtBase
v6.3.1
|
Go to the source code of this file.
Functions | |
QSignalSpy | spy (box, SIGNAL(clicked(bool))) |
box | animateClick () |
QCOMPARE (spy.count(), 1) | |
QVERIFY (arguments.at(0).toBool()==true) | |
myCustomObject | doSomething () |
QVERIFY (arguments.at(0).typeId()==QMetaType::Int) | |
QVERIFY (arguments.at(1).typeId()==QMetaType::QString) | |
QVERIFY (arguments.at(2).typeId()==QMetaType::Double) | |
qRegisterMetaType< SomeStruct > () | |
[1] More... | |
QSignalSpy spy & | model (whatever(SomeStruct)) |
QSignalSpy | spy (myPushButton, SIGNAL(clicked(bool))) |
[3] More... | |
QVERIFY (spy.wait(1000)) | |
[4] More... | |
QSignalSpy | spy (myPushButton, &QPushButton::clicked) |
[5] More... | |
object | setObjectName ("A new object name") |
for (int i=mo.propertyOffset();i< mo.propertyCount();++i) | |
[0] More... | |
Variables | |
QCheckBox * | box = ... |
[0] More... | |
QList< QVariant > | arguments = spy.takeFirst() |
QSignalSpy | spy (myCustomObject, SIGNAL(mySignal(int, QString, double))) |
[0] More... | |
SomeStruct | result = qvariant_cast<SomeStruct>(spy.at(0).at(0)) |
[2] More... | |
QObject | object |
[6] More... | |
auto | mo = object.metaObject() |
[7] More... | |
auto | signalIndex = mo->indexOfSignal("objectNameChanged(QString)") |
auto | signal = mo->method(signalIndex) |
box animateClick | ( | ) |
myCustomObject doSomething | ( | ) |
for | ( | ) |
[0]
[10]
[1]
[11]
[0]
[4]
Definition at line 118 of file doc_src_qsignalspy.cpp.
QSignalSpy spy& model | ( | whatever(SomeStruct) | ) |
QCOMPARE | ( | spy. | count(), |
1 | |||
) |
qRegisterMetaType< SomeStruct > | ( | ) |
[1]
[2]
QVERIFY | ( | arguments. | at0).toBool( = =true | ) |
QVERIFY | ( | arguments. | at0).typeId( = =QMetaType::Int | ) |
QVERIFY | ( | arguments. | at1).typeId( = =QMetaType::QString | ) |
QVERIFY | ( | arguments. | at2).typeId( = =QMetaType::Double | ) |
QVERIFY | ( | spy. | wait1000 | ) |
[4]
[5]
QSignalSpy spy | ( | box | , |
SIGNAL(clicked(bool)) | |||
) |
QSignalSpy spy | ( | myPushButton | , |
&QPushButton::clicked | |||
) |
[5]
[6]
QSignalSpy spy | ( | myPushButton | , |
SIGNAL(clicked(bool)) | |||
) |
[3]
[4]
Definition at line 59 of file doc_src_qsignalspy.cpp.
[0]
Definition at line 52 of file doc_src_qsignalspy.cpp.
void static tst_QWindow::writeMinMaxDimensionalProps_data () QTest const auto mo = object.metaObject() |
SomeStruct result = qvariant_cast<SomeStruct>(spy.at(0).at(0)) |
auto signal = mo->method(signalIndex) |
Definition at line 105 of file doc_src_qsignalspy.cpp.
Definition at line 104 of file doc_src_qsignalspy.cpp.
QSignalSpy spy(myPushButton, &QPushButton::clicked) | ( | myCustomObject | , |
SIGNAL(mySignal(int, QString, double)) | |||
) |
[0]
[5]
[3]
[1]
[4]
[6]