本页内容

Layouting::PushButton Class

class Layouting::PushButton

封装了QPushButton ,以便在布局构建器中使用。更多内容...

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

公共函数

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

详细说明

另请参阅 Layouting::ToolButton 和Layouting::Widget 。

成员函数文档

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

将func 连接到QAbstractButton::clicked 信号。当guard 被销毁时,该连接将自动断开。

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.