Changeset 846 for trunk/doc/src/widgets-and-layouts/layout.qdoc
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/doc/src/widgets-and-layouts/layout.qdoc
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 7 7 ** This file is part of the documentation of the Qt Toolkit. 8 8 ** 9 ** $QT_BEGIN_LICENSE: LGPL$9 ** $QT_BEGIN_LICENSE:FDL$ 10 10 ** Commercial Usage 11 11 ** Licensees holding valid Qt Commercial licenses may use this file in 12 12 ** accordance with the Qt Commercial License Agreement provided with the 13 ** Software or, alternatively, in accordance with the terms contained in 14 ** a written agreement between you and Nokia. 15 ** 16 ** GNU Lesser General Public License Usage 17 ** Alternatively, this file may be used under the terms of the GNU Lesser 18 ** General Public License version 2.1 as published by the Free Software 19 ** Foundation and appearing in the file LICENSE.LGPL included in the 20 ** packaging of this file. Please review the following information to 21 ** ensure the GNU Lesser General Public License version 2.1 requirements 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 23 ** 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 ** 28 ** GNU General Public License Usage 29 ** Alternatively, this file may be used under the terms of the GNU 30 ** General Public License version 3.0 as published by the Free Software 31 ** Foundation and appearing in the file LICENSE.GPL included in the 32 ** packaging of this file. Please review the following information to 33 ** ensure the GNU General Public License version 3.0 requirements will be 34 ** met: http://www.gnu.org/copyleft/gpl.html. 13 ** Software or, alternatively, in accordance with the terms contained in a 14 ** written agreement between you and Nokia. 15 ** 16 ** GNU Free Documentation License 17 ** Alternatively, this file may be used under the terms of the GNU Free 18 ** Documentation License version 1.3 as published by the Free Software 19 ** Foundation and appearing in the file included in the packaging of this 20 ** file. 35 21 ** 36 22 ** If you have questions regarding the use of this file, please contact … … 48 34 \page layout.html 49 35 \title Layout Management 36 \ingroup qt-basic-concepts 37 \ingroup qt-gui-concepts 50 38 \brief A tour of the standard layout managers and an introduction to custom 51 39 layouts. 52 40 53 \previouspage Widget Classes41 \previouspage Widgets and Layouts 54 42 \contentspage Widgets and Layouts 55 \nextpage { ImplementingStyles and Style Aware Widgets}{Styles}43 \nextpage {Styles and Style Aware Widgets}{Styles} 56 44 57 45 \ingroup frameworks-technologies … … 129 117 130 118 The following code creates a QHBoxLayout that manages the geometry of five 131 \l{QPushButton} s, as shown on the first screenshot above:119 \l{QPushButton}{QPushButtons}, as shown on the first screenshot above: 132 120 133 121 \snippet doc/src/snippets/layouts/layouts.cpp 0 … … 154 142 the fifth argument to QGridLayout::addWidget(). 155 143 156 Finally, the code for QFormLayout is .. 144 QFormLayout will add two widgets on a row, commonly a QLabel and a QLineEdit 145 to create forms. Adding a QLabel and a QLineEdit on the same row will set 146 the QLineEdit as the QLabel's buddy. The following code will use the 147 QFormLayout to place three \l{QPushButton}{QPushButtons} and a corresponding 148 QLineEdit on a row. 149 150 \snippet doc/src/snippets/layouts/layouts.cpp 18 151 \snippet doc/src/snippets/layouts/layouts.cpp 19 152 \snippet doc/src/snippets/layouts/layouts.cpp 20 153 \codeline 154 \snippet doc/src/snippets/layouts/layouts.cpp 21 155 \snippet doc/src/snippets/layouts/layouts.cpp 22 156 \snippet doc/src/snippets/layouts/layouts.cpp 23 157 157 158 158 … … 256 256 For further guidance when implementing these functions, see the 257 257 \e{Qt Quarterly} article 258 \l{http:// qt.nokia.com/doc/qq/qq04-height-for-width.html}258 \l{http://doc.qt.nokia.com/qq/qq04-height-for-width.html} 259 259 {Trading Height for Width}. 260 260
Note:
See TracChangeset
for help on using the changeset viewer.