Doc: complete Border Layout Example
Task-number: QTBUG-60635 Change-Id: Icc605e5bad96aaad0233d4b05ab1ed46972bd725 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
fa0906bc56
commit
195b2321d2
Binary file not shown.
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 8.9 KiB |
@ -36,6 +36,34 @@
|
|||||||
|
|
||||||
\image borderlayout-example.png
|
\image borderlayout-example.png
|
||||||
|
|
||||||
|
The constructor of the Window class creates a QTextBrowser object,
|
||||||
|
to which a BorderLayout named \c layout is added. The declaration
|
||||||
|
of the BorderLayout class is quoted at the end of this document.
|
||||||
|
|
||||||
|
\quotefromfile layouts/borderlayout/window.cpp
|
||||||
|
\skipto Window::Window()
|
||||||
|
\printuntil BorderLayout
|
||||||
|
|
||||||
|
Several labeled widgets are added to \c layout with the orientation
|
||||||
|
\c {Center}, \c {North}, \c {West}, \c {East 1}, \c {East 2}, and
|
||||||
|
\c {South}.
|
||||||
|
|
||||||
|
\skipto layout->addWidget
|
||||||
|
\printuntil setWindowTitle
|
||||||
|
|
||||||
|
createLabel() in class \c Window sets the text of the labeled widgets
|
||||||
|
and the style.
|
||||||
|
|
||||||
|
\skipto QLabel *Window::createLabel
|
||||||
|
\printuntil /^\}/
|
||||||
|
|
||||||
|
Class BorderLayout contains all the utilitarian functions for formatting
|
||||||
|
the widgets it contains.
|
||||||
|
|
||||||
|
\quotefromfile layouts/borderlayout/borderlayout.h
|
||||||
|
\skipto class
|
||||||
|
\printuntil /^\}/
|
||||||
|
|
||||||
For more information, visit the \l{Layout Management} page.
|
For more information, visit the \l{Layout Management} page.
|
||||||
|
|
||||||
\include examples-run.qdocinc
|
\include examples-run.qdocinc
|
||||||
|
Loading…
Reference in New Issue
Block a user