Layouting::PushButton Class

class Layouting::PushButton

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

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

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.