- Qt 6.9
- Qt Test
- C++ Classes
- QtTestLib
- ThrowOnSkipEnabler
- Qt 6.9.3 Reference Documentation

# QTest::ThrowOnSkipEnabler Class

class QTest::ThrowOnSkipEnabler

Header: | `#include <ThrowOnSkipEnabler>`
Since: | Qt 6.8

- List of all members, including inherited members

## Public Functions

| ThrowOnSkipEnabler()
| ~ThrowOnSkipEnabler()

## Detailed Description

RAII class around setThrowOnSkip().

## Member Function Documentation

### ThrowOnSkipEnabler::ThrowOnSkipEnabler()

Constructor. Calls `setThrowOnSkip(true)`.

### `[noexcept]` ThrowOnSkipEnabler::~ThrowOnSkipEnabler()

Destructor. Calls `setThrowOnSkip(false)`.