Layouting::Widget Class
class Layouting::WidgetБазовый класс для классов конструкторов виджетов. Подробнее...
| Header: | #include <Widget> |
| Inherits: | Layouting::Object |
| Inherited By: | 16 typesLayouting::Canvas, Layouting::CompletingTextEdit, Layouting::Group, Layouting::Label, Layouting::LineEdit, Layouting::MarkdownBrowser, Layouting::PushButton, Layouting::ScrollArea, Layouting::SpinBox, Layouting::Spinner, Layouting::Splitter, Layouting::Stack, Layouting::TabWidget, Layouting::TextEdit, Layouting::ToolBar, and Layouting::ToolButton |
Общедоступные функции
Подробное описание
Оборачивает объект, производный от ` 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.