- Extending Qt Creator Manual
- QtCreator
- PushButton
- Extending Qt Creator Manual 20.0.0

# Layouting::PushButton Class

class Layouting::PushButton

Wraps QPushButton for use in a Layouting builder. More...

Header: | `#include <PushButton>`
Inherits: | Layouting::Widget

- List of all members, including inherited members

## Public Functions

void | onClicked(QObject *guard, const std::function<void ()> &func)

## Detailed Description

See also Layouting::ToolButton and Layouting::Widget.

## Member Function Documentation

### void PushButton::onClicked(QObject *guard, const std::function<void ()> &func)

Connects func to the QAbstractButton::clicked signal. The connection is automatically removed when guard is destroyed.