Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickControlsTestUtils::QQuickStyleHelper Struct Reference

#include <controlstestutils_p.h>

+ Collaboration diagram for QQuickControlsTestUtils::QQuickStyleHelper:

Public Member Functions

bool updateStyle (const QString &style)
 

Public Attributes

QString currentStyle
 
QScopedPointer< QQmlEngineengine
 

Detailed Description

Definition at line 39 of file controlstestutils_p.h.

Member Function Documentation

◆ updateStyle()

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().

+ Here is the call graph for this function:

Member Data Documentation

◆ currentStyle

QString QQuickControlsTestUtils::QQuickStyleHelper::currentStyle

Definition at line 43 of file controlstestutils_p.h.

◆ engine

QScopedPointer<QQmlEngine> QQuickControlsTestUtils::QQuickStyleHelper::engine

Definition at line 44 of file controlstestutils_p.h.


The documentation for this struct was generated from the following files: