本页内容

Layouting::Group Class

class Layouting::Group

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

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

公共函数

void setGroupChecker(const std::function<void (QObject *)> &checker)

详细说明

可通过 setTitle() 和setGroupChecker() 配置标题和可选的复选状态。该组的内容通过在其内部嵌套一个 Layout 来提供。

另请参阅 Layouting::Widget 。

成员函数文档

void Group::setGroupChecker(const std::function<void (QObject *)> &checker)

调用checker 并传入底层对象QGroupBox ,从而允许外部代码配置该组框,例如使其可选中,并将选中状态与某个设置键绑定。

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.