W3cubDocs

/Qt 6.9

QTest::ThrowOnFailEnabler Class

class QTest::ThrowOnFailEnabler
Header: #include <ThrowOnFailEnabler>
Since: Qt 6.8

Public Functions

Detailed Description

RAII class around setThrowOnFail().

Member Function Documentation

ThrowOnFailEnabler::ThrowOnFailEnabler()

Constructor. Calls setThrowOnFail(true).

[noexcept] ThrowOnFailEnabler::~ThrowOnFailEnabler()

Destructor. Calls setThrowOnFail(false).

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qtest-throwonfailenabler.html