⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qsizepolicy.3qt

📁 tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件
💻 3QT
字号:
.TH QSizePolicy 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQSizePolicy \- A layout attribute describing horizontal and vertical resizing.SH SYNOPSIS.br.PP\fC#include <qsizepolicy.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "enum \fBSizeType\fR { Fixed = 0, Minimum = MayGrow, Maximum = MayShrink, Preferred = MayGrow|MayShrink, MinimumExpanding = Minimum|ExpMask, Expanding = MinimumExpanding|MayShrink }".br.ti -1c.BI "enum \fBExpandData\fR { NoDirection = 0, Horizontal = 1, Vertical = 2, BothDirections = Horizontal | Vertical }".br.ti -1c.BI "\fBQSizePolicy\fR ()".br.ti -1c.BI "\fBQSizePolicy\fR ( SizeType " "hor" ", SizeType " "ver" ", bool " "hfw" " = FALSE )".br.ti -1c.BI "SizeType \fBhorData\fR () const".br.ti -1c.BI "SizeType \fBverData\fR () const".br.ti -1c.BI "bool \fBmayShrinkHorizontally\fR () const".br.ti -1c.BI "bool \fBmayShrinkVertically\fR () const".br.ti -1c.BI "bool \fBmayGrowHorizontally\fR () const".br.ti -1c.BI "bool \fBmayGrowVertically\fR () const".br.ti -1c.BI "ExpandData \fBexpanding\fR () const".br.ti -1c.BI "void \fBsetHorData\fR ( SizeType d )".br.ti -1c.BI "void \fBsetVerData\fR ( SizeType d )".br.ti -1c.BI "void \fBsetHeightForWidth\fR ( bool b )".br.ti -1c.BI "bool \fBhasHeightForWidth\fR () const".br.in -1c.SH DESCRIPTIONA layout attribute describing horizontal and vertical resizing..PPWidgets which override QWidget::sizePolicy() return a QSizePolicy describing the horizontal and vertical resizing policy best used when laying out the widget..PPOnly the constructor is of interest in most applications..SS "Member Type Documentation".SH "QSizePolicy::SizeType"The sizing types used when constructing a QSizePolicy are:.TP\fCFixed\fR - the sizeHint() is the only acceptable alternative, so never grow or shrink (eg. the vertical direction of a pushbutton).TP\fCMinimum\fR - the sizeHint() is minimal, and sufficient. The widget can be expanded, but there is no advantage to it being larger. (eg. the horizontal direction of a pushbutton).TP\fCMaximum\fR - the sizeHint() is a maximum, the widget can be shrunk any amount without detriment if other widgets need the space (eg. a separator line).TP\fCPreferred\fR - the sizeHint() is best, but the widget can be shrunk below that and still be useful. The widget can be expanded, but there is no advantage to it being larger than sizeHint() (the default <a href="qwidget.html">QWidget policy).TP\fCMinimumExpanding\fR - the sizeHint() is a minimum, the widget can make use of extra space, so it should get as much space as possible. (not currently used by any standard Qt widgets).TP\fCExpanding\fR - the sizeHint() is a sensible size, but the widget can be shrunk below that and still be useful. The widget can make use of extra space, so it should get as much space as possible. (eg. the horizontal direction of a slider).SH MEMBER FUNCTION DOCUMENTATION.SH "QSizePolicy::QSizePolicy ()"Default constructor, produces a minimally initialized QSizePolicy..SH "QSizePolicy::QSizePolicy ( SizeType hor, SizeType ver, bool hfw = FALSE )"This is the constructor normally used to return a value in the overridden sizeHint() function of a QWidget subclass..PPIt constructs a QSizePolicy with independent horizontal and vertical sizing types, \fIhor\fR and \fIver\fR respectively. These sizing types affect how the widget is treated by the \fIlink\fR QLayout layout engine\\endlink..PPIf \fIhfw\fR is TRUE, the preferred height of the widget is dependent on the width of the widget (for example, a QLabel with automatic word-breaking)..SH "bool QSizePolicy::hasHeightForWidth () const"Returns TRUE if the widget's preferred height depends on its width..SH "QSizePolicy::SizeType QSizePolicy::horData() const"Returns the horizontal component of the size policy..SH "bool QSizePolicy::mayGrowHorizontally () const"Returns TRUE if the widget can sensibly be wider than its sizeHint()..SH "bool QSizePolicy::mayGrowVertically () const"Returns TRUE if the widget can sensibly be taller than its sizeHint()..SH "bool QSizePolicy::mayShrinkHorizontally () const"Returns TRUE if the widget can sensibly be narrower than its sizeHint()..SH "bool QSizePolicy::mayShrinkVertically () const"Returns TRUE if the widget can sensibly be lower than its sizeHint()..SH "void QSizePolicy::setHeightForWidth ( bool b )"Sets the hasHeightForWidth() flag to \fIb.\fR.SH "void QSizePolicy::setHorData ( SizeType d )"Sets the horizontal component of the size policy to \fId.\fR.SH "void QSizePolicy::setVerData ( SizeType d )"Sets the vertical component of the size policy to \fId.\fR.SH "QSizePolicy::SizeType QSizePolicy::verData() const"Returns the vertical component of the size policy..SH "SEE ALSO".BR http://www.troll.no/qt/qsizepolicy.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -