![]() |
Qt 6.x
The Qt SDK
|
#include <controlstestutils_p.h>
Public Member Functions | |
bool | updateStyle (const QString &style) |
Public Attributes | |
QString | currentStyle |
QScopedPointer< QQmlEngine > | engine |
Definition at line 39 of file controlstestutils_p.h.
bool QQuickControlsTestUtils::QQuickStyleHelper::updateStyle | ( | const QString & | style | ) |
If style is different from the current style, this function will recreate the QML engine, clear type registrations and set the new style.
Returns true
if successful or if style
is already set.
Definition at line 28 of file controlstestutils.cpp.
References component(), engine, QString::fromUtf8(), qmlClearTypeRegistrations(), qWarning, and QQuickStyle::setStyle().
QString QQuickControlsTestUtils::QQuickStyleHelper::currentStyle |
Definition at line 43 of file controlstestutils_p.h.
QScopedPointer<QQmlEngine> QQuickControlsTestUtils::QQuickStyleHelper::engine |
Definition at line 44 of file controlstestutils_p.h.