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

📄 qstylesheetitem.3qt

📁 linux下GUI编程工具qt的在线连接帮助手册
💻 3QT
📖 第 1 页 / 共 2 页
字号:
'\" t.TH QStyleSheetItem 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQStyleSheetItem \- Encapsulation of a set of text styles.PP\fC#include <qstylesheet.h>\fR.PPInherits Qt..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQStyleSheetItem\fR ( QStyleSheet * parent, const QString & name )".br.ti -1c.BI "\fBQStyleSheetItem\fR ( const QStyleSheetItem & other )".br.ti -1c.BI "\fB~QStyleSheetItem\fR ()".br.ti -1c.BI "QString \fBname\fR () const".br.ti -1c.BI "QStyleSheet * \fBstyleSheet\fR ()".br.ti -1c.BI "const QStyleSheet * \fBstyleSheet\fR () const".br.ti -1c.BI "enum \fBDisplayMode\fR { DisplayBlock, DisplayInline, DisplayListItem, DisplayNone }".br.ti -1c.BI "DisplayMode \fBdisplayMode\fR () const".br.ti -1c.BI "void \fBsetDisplayMode\fR ( DisplayMode m )".br.ti -1c.BI "int \fBalignment\fR () const".br.ti -1c.BI "void \fBsetAlignment\fR ( int f )".br.ti -1c.BI "enum \fBVerticalAlignment\fR { VAlignBaseline, VAlignSub, VAlignSuper }".br.ti -1c.BI "VerticalAlignment \fBverticalAlignment\fR () const".br.ti -1c.BI "void \fBsetVerticalAlignment\fR ( VerticalAlignment valign )".br.ti -1c.BI "int \fBfontWeight\fR () const".br.ti -1c.BI "void \fBsetFontWeight\fR ( int w )".br.ti -1c.BI "int \fBlogicalFontSize\fR () const".br.ti -1c.BI "void \fBsetLogicalFontSize\fR ( int s )".br.ti -1c.BI "int \fBlogicalFontSizeStep\fR () const".br.ti -1c.BI "void \fBsetLogicalFontSizeStep\fR ( int s )".br.ti -1c.BI "int \fBfontSize\fR () const".br.ti -1c.BI "void \fBsetFontSize\fR ( int s )".br.ti -1c.BI "QString \fBfontFamily\fR () const".br.ti -1c.BI "void \fBsetFontFamily\fR ( const QString & fam )".br.ti -1c.BI "int numberOfColumns () const  \fI(obsolete)\fR".br.ti -1c.BI "void setNumberOfColumns ( int ncols )  \fI(obsolete)\fR".br.ti -1c.BI "QColor \fBcolor\fR () const".br.ti -1c.BI "void \fBsetColor\fR ( const QColor & c )".br.ti -1c.BI "bool \fBfontItalic\fR () const".br.ti -1c.BI "void \fBsetFontItalic\fR ( bool italic )".br.ti -1c.BI "bool \fBdefinesFontItalic\fR () const".br.ti -1c.BI "bool \fBfontUnderline\fR () const".br.ti -1c.BI "void \fBsetFontUnderline\fR ( bool underline )".br.ti -1c.BI "bool \fBdefinesFontUnderline\fR () const".br.ti -1c.BI "bool \fBisAnchor\fR () const".br.ti -1c.BI "void \fBsetAnchor\fR ( bool anc )".br.ti -1c.BI "enum \fBWhiteSpaceMode\fR { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap }".br.ti -1c.BI "WhiteSpaceMode \fBwhiteSpaceMode\fR () const".br.ti -1c.BI "void \fBsetWhiteSpaceMode\fR ( WhiteSpaceMode m )".br.ti -1c.BI "enum \fBMargin\fR { MarginLeft, MarginRight, MarginTop, MarginBottom, MarginFirstLine, MarginAll, MarginVertical, MarginHorizontal }".br.ti -1c.BI "int \fBmargin\fR ( Margin m ) const".br.ti -1c.BI "void \fBsetMargin\fR ( Margin m, int v )".br.ti -1c.BI "enum \fBListStyle\fR { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }".br.ti -1c.BI "ListStyle \fBlistStyle\fR () const".br.ti -1c.BI "void \fBsetListStyle\fR ( ListStyle s )".br.ti -1c.BI "QString \fBcontexts\fR () const".br.ti -1c.BI "void \fBsetContexts\fR ( const QString & c )".br.ti -1c.BI "bool \fBallowedInContext\fR ( const QStyleSheetItem * s ) const".br.ti -1c.BI "bool \fBselfNesting\fR () const".br.ti -1c.BI "void \fBsetSelfNesting\fR ( bool nesting )".br.ti -1c.BI "void \fBsetLineSpacing\fR ( int ls )".br.ti -1c.BI "int \fBlineSpacing\fR () const".br.in -1c.SH DESCRIPTIONThe QStyleSheetItem class provides an encapsulation of a set of text styles..PPA style sheet item consists of a name and a set of attributes that specifiy its font, color, etc. When used in a style sheet (see styleSheet()), items define the name() of a rich text tag and the display property changes associated with it..PPThe display mode attribute indicates whether the item is a block, an inline element or a list element; see setDisplayMode(). The treatment of whitespace is controlled by the white space mode; see setWhiteSpaceMode(). An item's margins are set with setMargin(), and line spacing is set with setLineSpacing(). In the case of list items, the list style is set with setListStyle(). An item may be a hypertext link anchor; see setAnchor(). Other attributes are set with setAlignment(), setVerticalAlignment(), setFontFamily(), setFontSize(), setFontWeight(), setFontItalic(), setFontUnderline() and setColor()..PPSee also Text Related Classes..SS "Member Type Documentation".SH "QStyleSheetItem::DisplayMode"This enum type defines the way adjacent elements are displayed. The possible values are:.TP\fCQStyleSheetItem::DisplayBlock\fR - elements are displayed as a rectangular block (e.g. \fC<p>...</p>\fR)..TP\fCQStyleSheetItem::DisplayInline\fR - elements are displayed in a horizontally flowing sequence (e.g. \fC<em>...</em>\fR)..TP\fCQStyleSheetItem::DisplayListItem\fR - elements are displayed in a vertical sequence (e.g. \fC<li>...</li>\fR)..TP\fCQStyleSheetItem::DisplayNone\fR - elements are not displayed at all..SH "QStyleSheetItem::ListStyle"This enum type defines how the items in a list are prefixed when displayed. The currently defined values are:.TP\fCQStyleSheetItem::ListDisc\fR - a filled circle (i.e. a bullet).TP\fCQStyleSheetItem::ListCircle\fR - an unfilled circle.TP\fCQStyleSheetItem::ListSquare\fR - a filled square.TP\fCQStyleSheetItem::ListDecimal\fR - an integer in base 10: \fI1\fR, \fI2\fR, \fI3\fR, ....TP\fCQStyleSheetItem::ListLowerAlpha\fR - a lowercase letter: \fIa\fR, \fIb\fR, \fIc\fR, ....TP\fCQStyleSheetItem::ListUpperAlpha\fR - an uppercase letter: \fIA\fR, \fIB\fR, \fIC\fR, ....SH "QStyleSheetItem::Margin".TP\fCQStyleSheetItem::MarginLeft\fR - left margin.TP\fCQStyleSheetItem::MarginRight\fR - right margin.TP\fCQStyleSheetItem::MarginTop\fR - top margin.TP\fCQStyleSheetItem::MarginBottom\fR - bottom margin.TP\fCQStyleSheetItem::MarginAll\fR - all margins (left, right, top and bottom).TP\fCQStyleSheetItem::MarginVertical\fR - top and bottom margins.TP\fCQStyleSheetItem::MarginHorizontal\fR - left and right margins.TP\fCQStyleSheetItem::MarginFirstLine\fR - margin (indentation) of the first line of a paragarph (in addition to the MarginLeft of the paragraph).SH "QStyleSheetItem::VerticalAlignment"This enum type defines the way elements are aligned vertically. This is supported for text elements only. The possible values are:.TP\fCQStyleSheetItem::VAlignBaseline\fR - align the baseline of the element (or the bottom, if the element doesn't have a baseline) with the baseline of the parent.TP\fCQStyleSheetItem::VAlignSub\fR - subscript the element.TP

⌨️ 快捷键说明

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