本页内容

Layouting::Widget Class

class Layouting::Widget

控件构建器类的基类。更多...

公共函数

QWidget *emerge() const
void setLayout(const Layouting::Layout &layout)

详细说明

封装一个从QWidget 派生的对象。实例是短暂存在的:需进行构造和配置。它们通过调用emerge()来获取底层的QWidget ,或者将构建器嵌套在Layout中以直接嵌入。

另请参阅 Layouting::Layout 。

成员函数文档

QWidget *Widget::emerge() const

返回底层的QWidget 。

调用方不会获得所有权。该控件由构建器的父控件或布局拥有。

void Widget::setLayout(const Layouting::Layout &layout)

将layout 设置为该小部件的布局,并先对其进行最终确定。

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.