Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQuickControlsTestUtils Namespace Reference

Classes

class  ComponentCreator
 
class  QQuickControlsApplicationHelper
 
struct  QQuickStyleHelper
 
class  StyleInfo
 

Typedefs

typedef std::function< void(const QString &, const QUrl &)> ForEachCallback
 

Functions

void forEachControl (QQmlEngine *engine, const QString &qqc2ImportPath, const QString &sourcePath, const QString &targetPath, const QStringList &skipList, ForEachCallback callback)
 
void addTestRowForEachControl (QQmlEngine *engine, const QString &qqc2ImportPath, const QString &sourcePath, const QString &targetPath, const QStringList &skipList=QStringList())
 
bool verifyButtonClickable (QQuickAbstractButton *button)
 
bool clickButton (QQuickAbstractButton *button)
 
bool doubleClickButton (QQuickAbstractButton *button)
 

Typedef Documentation

◆ ForEachCallback

typedef std::function<void(const QString &, const QUrl &)> QQuickControlsTestUtils::ForEachCallback

Definition at line 47 of file controlstestutils_p.h.

Function Documentation

◆ addTestRowForEachControl()

void QQuickControlsTestUtils::addTestRowForEachControl ( QQmlEngine engine,
const QString qqc2ImportPath,
const QString sourcePath,
const QString targetPath,
const QStringList skipList = QStringList() 
)

Definition at line 89 of file controlstestutils.cpp.

References engine, forEachControl(), QTest::newRow(), and qPrintable.

+ Here is the call graph for this function:

◆ clickButton()

bool QQuickControlsTestUtils::clickButton ( QQuickAbstractButton button)

Definition at line 127 of file controlstestutils.cpp.

References button, QQuickAbstractButton::clicked(), QWidget::height, QSignalSpy::isValid(), Qt::LeftButton, QTest::mouseClick(), Qt::NoModifier, qWarning, QList< T >::size(), spy, verifyButtonClickable(), QWidget::width, and QWidget::window().

+ Here is the call graph for this function:

◆ doubleClickButton()

bool QQuickControlsTestUtils::doubleClickButton ( QQuickAbstractButton button)

Definition at line 148 of file controlstestutils.cpp.

References button, QQuickAbstractButton::clicked(), QWidget::height, QSignalSpy::isValid(), Qt::LeftButton, QTest::mouseDClick(), Qt::NoModifier, qWarning, QList< T >::size(), spy, verifyButtonClickable(), QWidget::width, and QWidget::window().

+ Here is the call graph for this function:

◆ forEachControl()

void QQuickControlsTestUtils::forEachControl ( QQmlEngine engine,
const QString qqc2ImportPath,
const QString sourcePath,
const QString targetPath,
const QStringList skipList,
QQuickControlsTestUtils::ForEachCallback  callback 
)

Definition at line 47 of file controlstestutils.cpp.

References engine, QDir::entryInfoList(), QFile::exists(), QDir::Files, QUrl::fromLocalFile(), QString::isEmpty(), QString::prepend(), QStringLiteral, QString::startsWith(), url, and QQmlFile::urlToLocalFileOrQrc().

Referenced by addTestRowForEachControl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyButtonClickable()

bool QQuickControlsTestUtils::verifyButtonClickable ( QQuickAbstractButton button)

Definition at line 97 of file controlstestutils.cpp.

References button, QWidget::height, QWidget::isEnabled(), QWidget::isVisible(), qWarning, QWidget::width, and QWidget::window().

Referenced by clickButton(), and doubleClickButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: