Na tej stronie

Layouting::Widget Class

class Layouting::Widget

Klasa bazowa dla klas tworzących widżety. Więcej...

Funkcje publiczne

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

Szczegółowy opis

Otacza obiekt wywodzący się z klasy ` QWidget`. Instancje są efemeryczne: należy je utworzyć i skonfigurować. Wywołują one metodę ` emerge()` w celu pobrania bazowego elementu ` QWidget` lub zagnieżdżają konstruktor wewnątrz elementu `Layout`, aby go bezpośrednio osadzić.

Zobacz także Layouting::Layout.

Dokumentacja funkcji składowych

QWidget *Widget::emerge() const

Zwraca podstawowy obiekt typu ` QWidget`.

Wywołujący nie przejmuje własności. Widżet jest własnością widżetu nadrzędnego lub układu konstruktor.

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

Ustawia „ layout ” jako układ tego widżetu, uprzednio go finalizując.

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.