1QSpacerItem(3qt) QSpacerItem(3qt)
2
3
4
6 QSpacerItem - Blank space in a layout
7
9 #include <qlayout.h>
10
11 Inherits QLayoutItem.
12
13 Public Members
14 QSpacerItem ( int w, int h, QSizePolicy::SizeType hData =
15 QSizePolicy::Minimum, QSizePolicy::SizeType vData =
16 QSizePolicy::Minimum )
17 void changeSize ( int w, int h, QSizePolicy::SizeType hData =
18 QSizePolicy::Minimum, QSizePolicy::SizeType vData =
19 QSizePolicy::Minimum )
20 virtual QSize sizeHint () const
21 virtual QSize minimumSize () const
22 virtual QSize maximumSize () const
23 virtual QSizePolicy::ExpandData expanding () const
24 virtual bool isEmpty () const
25 virtual void setGeometry ( const QRect & r )
26
28 The QSpacerItem class provides blank space in a layout.
29
30 This class is used by custom layouts.
31
32 See also QLayout, QLayout::spacerItem(), Widget Appearance and Style,
33 and Layout Management.
34
37 QSizePolicy::Minimum, QSizePolicy::SizeType vData =
38 QSizePolicy::Minimum )
39 Constructs a spacer item with preferred width w, preferred height h,
40 horizontal size policy hData and vertical size policy vData.
41
42 The default values provide a gap that is able to stretch if nothing
43 else wants the space.
44
46 QSizePolicy::Minimum, QSizePolicy::SizeType vData =
47 QSizePolicy::Minimum )
48 Changes this spacer item to have preferred width w, preferred height h,
49 horizontal size policy hData and vertical size policy vData.
50
51 The default values provide a gap that is able to stretch if nothing
52 else wants the space.
53
55 Returns the direction in which this spacer item will expand.
56
57 See also QSizePolicy::ExpandData.
58
59 Reimplemented from QLayoutItem.
60
62 Returns TRUE because a spacer item never contains widgets.
63
64 Reimplemented from QLayoutItem.
65
67 Returns the maximum size of this spacer item.
68
69 Reimplemented from QLayoutItem.
70
72 Returns the minimum size of this spacer item.
73
74 Reimplemented from QLayoutItem.
75
77 Stores the spacer item's rect r so that it can be returned by
78 geometry().
79
80 Reimplemented from QLayoutItem.
81
83 Returns the preferred size of this spacer item.
84
85 Reimplemented from QLayoutItem.
86
87
89 http://doc.trolltech.com/qspaceritem.html
90 http://www.trolltech.com/faq/tech.html
91
93 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
94 license file included in the distribution for a complete license
95 statement.
96
98 Generated automatically from the source code.
99
101 If you find a bug in Qt, please report it as described in
102 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
103 help you. Thank you.
104
105 The definitive Qt documentation is provided in HTML format; it is
106 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
107 web browser. This man page is provided as a convenience for those users
108 who prefer man pages, although this format is not officially supported
109 by Trolltech.
110
111 If you find errors in this manual page, please report them to qt-
112 bugs@trolltech.com. Please include the name of the manual page
113 (qspaceritem.3qt) and the Qt version (3.3.8).
114
115
116
117Trolltech AS 2 February 2007 QSpacerItem(3qt)