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
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 41 of file controlstestutils_p.h.

Member Function Documentation

◆ updateStyle()

bool QQuickControlsTestUtils::QQuickStyleHelper::updateStyle ( const QString & style)
nodiscard

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 30 of file controlstestutils.cpp.

Member Data Documentation

◆ currentStyle

QString QQuickControlsTestUtils::QQuickStyleHelper::currentStyle

Definition at line 45 of file controlstestutils_p.h.

◆ engine

QScopedPointer<QQmlEngine> QQuickControlsTestUtils::QQuickStyleHelper::engine

Definition at line 46 of file controlstestutils_p.h.


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