Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_qtestlib_qtestcase_snippet.cpp File Reference

(0f94430a0fba5509d2d756832cb44a266d1d2e86)

Go to the source code of this file.

Namespaces

namespace  QTest
 [15]
 

Functions

 QVERIFY (spy.isValid())
 [0]
 
template<>
char * QTest::toString (const MyPoint &point)
 
void processTouchEvent ()
 [toString-overload]
 
char * toString (const MyType &t)
 [31]
 
QSignalSpy doubleClickSpy (target, &TargetClass::doubleClicked)
 [34]
 
 QVERIFY (target.isPressed())
 
 QCOMPARE (target.isPressed(), false)
 
 QCOMPARE (target.pressCount(), 2)
 
 QCOMPARE (doubleClickSpy.count(), 1)
 
template<>
char * QTest::toString (const MyPoint &point)
 

Variables

QWidget myWindow
 [26]
 
const QPoint p (1, 2)
 [0]
 

Function Documentation

◆ doubleClickSpy()

QSignalSpy doubleClickSpy ( target ,
&TargetClass::doubleClicked  )

[34]

[35]

◆ processTouchEvent()

void processTouchEvent ( )

[toString-overload]

[25]

[25]

[25]

[25]

Definition at line 45 of file src_qtestlib_qtestcase_snippet.cpp.

◆ QCOMPARE() [1/3]

QCOMPARE ( doubleClickSpy. count(),
1  )

◆ QCOMPARE() [2/3]

QCOMPARE ( target. isPressed(),
false  )

◆ QCOMPARE() [3/3]

QCOMPARE ( target. pressCount(),
2  )

◆ QVERIFY() [1/2]

QVERIFY ( spy. isValid())

[0]

◆ QVERIFY() [2/2]

QVERIFY ( target. isPressed())

◆ toString()

char * toString ( const MyType & t)

[31]

[34]

Definition at line 115 of file src_qtestlib_qtestcase_snippet.cpp.

Variable Documentation

◆ myWindow

QTest::mouseRelease & myWindow

[26]

[28]

[29]

Definition at line 75 of file src_qtestlib_qtestcase_snippet.cpp.

◆ p

const QPoint p(1, 2) ( 1 ,
2  )

[0]

[1]

[2]