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

📄 qstylesheetitem.3qt

📁 qt专门用于嵌入式的图形开发GUI
💻 3QT
📖 第 1 页 / 共 2 页
字号:
.TP\fCQStyleSheetItem::WhiteSpaceNormal\fR - any sequence of whitespace (including line-breaks) is equivalent to a single space..TP\fCQStyleSheetItem::WhiteSpacePre\fR - whitespace must be output exactly as given in the input..TP\fCQStyleSheetItem::WhiteSpaceNoWrap\fR - multiple spaces are collapsed as with WhiteSpaceNormal, but no automatic line-breaks occur. To break lines manually, use the \fC<br>\fR tag..PP.SH MEMBER FUNCTION DOCUMENTATION.SH "QStyleSheetItem::QStyleSheetItem ( QStyleSheet * parent, const QString & name )"Constructs a new style called \fIname\fR for the stylesheet \fIparent\fR..PPAll properties in QStyleSheetItem are initially in the "do not change" state, except display mode, which defaults to DisplayInline..SH "QStyleSheetItem::QStyleSheetItem ( const QStyleSheetItem & other )"Copy constructor. Constructs a copy of \fIother\fR that is not bound to any style sheet..SH "QStyleSheetItem::~QStyleSheetItem ()"Destroys the style. Note that QStyleSheetItem objects become owned by QStyleSheet when they are created..SH "int QStyleSheetItem::alignment () const"Returns the alignment of this style. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify..PPSee also setAlignment() and Qt::AlignmentFlags..SH "bool QStyleSheetItem::allowedInContext ( const QStyleSheetItem * s ) const"Returns TRUE if this style can be nested into an element of style \fIs\fR; otherwise returns FALSE..PPSee also contexts() and setContexts()..SH "QColor QStyleSheetItem::color () const"Returns the text color of this style or an invalid color if no color has been set..PPSee also setColor() and QColor::isValid()..SH "QString QStyleSheetItem::contexts () const"Returns a space-separated list of names of styles that may contain elements of this style. If nothing has been set, contexts() returns an empty string, which indicates that this style can be nested everywhere..PPSee also setContexts()..SH "bool QStyleSheetItem::definesFontItalic () const"Returns TRUE if the style defines a font shape; otherwise returns FALSE. A style does not define any shape until setFontItalic() is called..PPSee also setFontItalic() and fontItalic()..SH "bool QStyleSheetItem::definesFontStrikeOut () const"Returns TRUE if the style defines a setting for the strikeOut property of the font; otherwise returns FALSE. A style does not define this until setFontStrikeOut() is called..PPSee also setFontStrikeOut() and fontStrikeOut()..SH "bool QStyleSheetItem::definesFontUnderline () const"Returns TRUE if the style defines a setting for the underline property of the font; otherwise returns FALSE. A style does not define this until setFontUnderline() is called..PPSee also setFontUnderline() and fontUnderline()..SH "DisplayMode QStyleSheetItem::displayMode () const"Returns the display mode of the style..PPSee also setDisplayMode()..SH "QString QStyleSheetItem::fontFamily () const"Returns the font family setting of the style. This is either a valid font family or QString::null if no family has been set..PPSee also setFontFamily(), QFont::family(), and QFont::setFamily()..SH "bool QStyleSheetItem::fontItalic () const"Returns TRUE if the style sets an italic font; otherwise returns FALSE..PPSee also setFontItalic() and definesFontItalic()..SH "int QStyleSheetItem::fontSize () const"Returns the font size setting of the style. This is either a valid point size or QStyleSheetItem::Undefined..PPSee also setFontSize(), QFont::pointSize(), and QFont::setPointSize()..SH "bool QStyleSheetItem::fontStrikeOut () const"Returns TRUE if the style sets a strike out font; otherwise returns FALSE..PPSee also setFontStrikeOut() and definesFontStrikeOut()..SH "bool QStyleSheetItem::fontUnderline () const"Returns TRUE if the style sets an underlined font; otherwise returns FALSE..PPSee also setFontUnderline() and definesFontUnderline()..SH "int QStyleSheetItem::fontWeight () const"Returns the font weight setting of the style. This is either a valid QFont::Weight or the value QStyleSheetItem::Undefined..PPSee also setFontWeight() and QFont..SH "bool QStyleSheetItem::isAnchor () const"Returns whether this style is an anchor..PPSee also setAnchor()..SH "int QStyleSheetItem::lineSpacing () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPReturns the linespacing.SH "ListStyle QStyleSheetItem::listStyle () const"Returns the list style of the style..PPSee also setListStyle() and ListStyle..SH "int QStyleSheetItem::logicalFontSize () const"Returns the logical font size setting of the style. This is either a valid size between 1 and 7 or QStyleSheetItem::Undefined..PPSee also setLogicalFontSize(), setLogicalFontSizeStep(), QFont::pointSize(), and QFont::setPointSize()..SH "int QStyleSheetItem::logicalFontSizeStep () const"Returns the logical font size step of this style..PPThe default is 0. Tags such as \fCbig\fR define \fC+1\fR; \fCsmall\fR defines \fC-1\fR..PPSee also setLogicalFontSizeStep()..SH "int QStyleSheetItem::margin ( Margin m ) const"Returns the width of margin \fIm\fR in pixels..PPThe margin, \fIm\fR, can be MarginLeft, MarginRight, MarginTop, MarginBottom, or MarginFirstLine..PPSee also setMargin() and Margin..SH "QString QStyleSheetItem::name () const"Returns the name of the style item..SH "int QStyleSheetItem::numberOfColumns () const"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPReturns the number of columns for this style..PPSee also setNumberOfColumns(), displayMode(), and setDisplayMode()..SH "QStyleSheetItem & QStyleSheetItem::operator= ( const QStyleSheetItem & other )"Assignment. Assings a copy of \fIother\fR that is not bound to any style sheet. Unbounds first from previous style sheet..SH "bool QStyleSheetItem::selfNesting () const"Returns TRUE if this style has self-nesting enabled; otherwise returns FALSE..PPSee also setSelfNesting()..SH "void QStyleSheetItem::setAlignment ( int f )"Sets the alignment to \fIf\fR. This only makes sense for styles with a display mode of DisplayBlock. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify..PPSee also alignment(), displayMode(), and Qt::AlignmentFlags..SH "void QStyleSheetItem::setAnchor ( bool anc )"If \fIanc\fR is TRUE, sets this style to be an anchor (hypertext link); otherwise sets it to not be an anchor. Elements in this style link to other documents or anchors..PPSee also isAnchor()..SH "void QStyleSheetItem::setColor ( const QColor & c )"Sets the text color of this style to \fIc\fR..PPSee also color()..SH "void QStyleSheetItem::setContexts ( const QString & c )"Sets a space-separated list of names of styles that may contain elements of this style. If \fIc\fR is empty, the style can be nested everywhere..PPSee also contexts()..SH "void QStyleSheetItem::setDisplayMode ( DisplayMode m )"Sets the display mode of the style to \fIm\fR..PPSee also displayMode()..SH "void QStyleSheetItem::setFontFamily ( const QString & fam )"Sets the font family setting of the style to \fIfam\fR..PPSee also fontFamily(), QFont::family(), and QFont::setFamily()..SH "void QStyleSheetItem::setFontItalic ( bool italic )"If \fIitalic\fR is TRUE sets italic for the style; otherwise sets upright..PPSee also fontItalic() and definesFontItalic()..SH "void QStyleSheetItem::setFontSize ( int s )"Sets the font size setting of the style to \fIs\fR points..PPSee also fontSize(), QFont::pointSize(), and QFont::setPointSize()..SH "void QStyleSheetItem::setFontStrikeOut ( bool strikeOut )"If \fIstrikeOut\fR is TRUE, sets strike out for the style; otherwise sets no strike out..PPSee also fontStrikeOut() and definesFontStrikeOut()..SH "void QStyleSheetItem::setFontUnderline ( bool underline )"If \fIunderline\fR is TRUE, sets underline for the style; otherwise sets no underline..PPSee also fontUnderline() and definesFontUnderline()..SH "void QStyleSheetItem::setFontWeight ( int w )"Sets the font weight setting of the style to \fIw\fR. Valid values are those defined by QFont::Weight..PPSee also QFont and fontWeight()..SH "void QStyleSheetItem::setListStyle ( ListStyle s )"Sets the list style of the style to \fIs\fR..PPThis is used by nested elements that have a display mode of DisplayListItem..PPSee also listStyle(), DisplayMode, and ListStyle..SH "void QStyleSheetItem::setLogicalFontSize ( int s )"Sets the logical font size setting of the style to \fIs\fR. Valid logical sizes are 1 to 7..PPSee also logicalFontSize(), QFont::pointSize(), and QFont::setPointSize()..SH "void QStyleSheetItem::setLogicalFontSizeStep ( int s )"Sets the logical font size step of this style to \fIs\fR..PPSee also logicalFontSizeStep()..SH "void QStyleSheetItem::setMargin ( Margin m, int v )"Sets the width of margin \fIm\fR to \fIv\fR pixels..PPThe margin, \fIm\fR, can be MarginLeft, MarginRight, MarginTop, MarginBottom, MarginFirstLine, MarginAll, MarginVertical or MarginHorizontal. The value \fIv\fR must be >= 0..PPSee also margin()..SH "void QStyleSheetItem::setNumberOfColumns ( int ncols )"\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code..PPSets the number of columns for this style. Elements in the style are divided into columns..PPThis makes sense only if the style uses a block display mode (see QStyleSheetItem::DisplayMode)..PPSee also numberOfColumns()..SH "void QStyleSheetItem::setSelfNesting ( bool nesting )"Sets the self-nesting property for this style to \fInesting\fR..PPIn order to support "dirty" HTML, paragraphs \fC<p>\fR and list items \fC<li>\fR are not self-nesting. This means that starting a new paragraph or list item automatically closes the previous one..PPSee also selfNesting()..SH "void QStyleSheetItem::setVerticalAlignment ( VerticalAlignment valign )"Sets the vertical alignment to \fIvalign\fR. Possible values are VAlignBaseline, VAlignSub or VAlignSuper..PPThe vertical alignment property is not inherited..PPSee also verticalAlignment()..SH "void QStyleSheetItem::setWhiteSpaceMode ( WhiteSpaceMode m )"Sets the whitespace mode to \fIm\fR..PPSee also WhiteSpaceMode..SH "QStyleSheet * QStyleSheetItem::styleSheet ()"Returns the style sheet this item is in..SH "const QStyleSheet * QStyleSheetItem::styleSheet () const"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPReturns the style sheet this item is in..SH "VerticalAlignment QStyleSheetItem::verticalAlignment () const"Returns the vertical alignment of the style. Possible values are VAlignBaseline, VAlignSub or VAlignSuper..PPSee also setVerticalAlignment()..SH "WhiteSpaceMode QStyleSheetItem::whiteSpaceMode () const"Returns the whitespace mode..PPSee also setWhiteSpaceMode() and WhiteSpaceMode..SH "SEE ALSO".BR http://doc.trolltech.com/qstylesheetitem.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qstylesheetitem.3qt) and the Qtversion (3.3.5).

⌨️ 快捷键说明

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