Layouting::Widget Class
class Layouting::WidgetClasse de base pour les classes de générateurs de widgets. En savoir plus...
| 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 |
Fonctions publiques
Description détaillée
Enveloppe un objet dérivé d'QWidget. Les instances sont éphémères : elles sont construites et configurées. Elles appellent emerge() pour récupérer l'QWidget sous-jacente, ou imbriquent le générateur à l'intérieur d'un Layout pour l'intégrer directement.
Voir aussi Layouting::Layout.
Documentation des fonctions membres
QWidget *Widget::emerge() const
Renvoie l'QWidget sous-jacente.
L'appelant n'en devient pas propriétaire. Le widget appartient au widget parent ou à la mise en page du constructeur.
void Widget::setLayout(const Layouting::Layout &layout)
Définit « layout » comme mise en page de ce widget, après l'avoir d'abord finalisé.
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.