On this page

Layouting::PushButton Class

class Layouting::PushButton

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

Header: #include <layoutbuilder.h>
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.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.