Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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] | |
QSignalSpy spy & | model (whatever(SomeStruct)) |
QSignalSpy | spy (myPushButton, SIGNAL(clicked(bool))) |
[3] | |
QSignalSpy | spy (myPushButton, &QPushButton::clicked) |
[4] | |
object | setObjectName ("A new object name") |
for (int i=mo.propertyOffset();i< mo.propertyCount();++i) | |
[13] | |
Variables | |
QCheckBox * | box = ... |
[0] | |
QList< QVariant > | arguments = spy.takeFirst() |
QSignalSpy | spy (myCustomObject, SIGNAL(mySignal(int, QString, double))) |
[0] | |
SomeStruct | result = qvariant_cast<SomeStruct>(spy.at(0).at(0)) |
[2] | |
QObject | object |
[6] | |
auto | mo = object.metaObject() |
[7] | |
auto | signalIndex = mo->indexOfSignal("objectNameChanged(QString)") |
auto | signal = mo->method(signalIndex) |
box animateClick | ( | ) |
myCustomObject doSomething | ( | ) |
|
new |
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 | ) |
QSignalSpy spy | ( | box | , |
SIGNAL(clicked(bool)) | ) |
QSignalSpy spy | ( | myPushButton | , |
&QPushButton::clicked | ) |
[4]
[6]
QSignalSpy spy | ( | myPushButton | , |
SIGNAL(clicked(bool)) | ) |
[3]
[4]
Definition at line 12 of file doc_src_qsignalspy.cpp.
[0]
Definition at line 5 of file doc_src_qsignalspy.cpp.
auto mo = object.metaObject() |
SomeStruct result = qvariant_cast<SomeStruct>(spy.at(0).at(0)) |
auto signal = mo->method(signalIndex) |
Definition at line 55 of file doc_src_qsignalspy.cpp.
Definition at line 54 of file doc_src_qsignalspy.cpp.
QSignalSpy spy | ( | myCustomObject | , |
SIGNAL(mySignal(int, QString, double)) | ) |
[0]
[3]
[1]
[4]
[6]