ThrowOnFailDisabler Class

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

Public Functions

Detailed Description

RAII class around setThrowOnFail().

Member Function Documentation

ThrowOnFailDisabler::ThrowOnFailDisabler()

Constructor. Calls setThrowOnFail(false).

[noexcept] ThrowOnFailDisabler::~ThrowOnFailDisabler()

Destructor. Calls setThrowOnFail(true).