QTextInlineObject Class Reference

[QtGui module]

该QTextInlineObject类表示一个嵌入对象QTextLayoutMore…

Methods

  • __init__ (self)
  • __init__ (self, QTextInlineObject)
  • float ascent (self)
  • float descent (self)
  • QTextFormat format (self)
  • int formatIndex (self)
  • float height (self)
  • bool isValid (self)
  • QRectF rect (self)
  • setAscent (self, float a)
  • setDescent (self, float d)
  • setWidth (self, float w)
  • Qt.LayoutDirection textDirection (self)
  • int textPosition (self)
  • float width (self)

Detailed Description

该QTextInlineObject类表示一个嵌入对象QTextLayout

如果文本布局是用来铺陈的部分该类仅用于QTextDocument

嵌入对象具有使用,可以设置各种属性,例如setWidth( )setAscent()和setDescent( ) 。它佔据矩形由下式给出rect() ,并通过isRightToLeft其方向() 。它在文本布局位置(由下式给出) ,其格式由下式给出format( ) 。


Method Documentation

  1. QTextInlineObject.__init__ (self)

创建用于在位置的项目一个新的嵌入对象i在文本引擎e

  1. QTextInlineObject.__init__ (self, QTextInlineObject)
  1. float QTextInlineObject.ascent (self)

返回内嵌对象的上升。

See also setAscent( )descent( )width()和rect( ) 。

  1. float QTextInlineObject.descent (self)

返回内嵌对象的血统。

See also setDescent( )ascent( )width()和rect( ) 。

  1. QTextFormat QTextInlineObject.format (self)

[

返回中的文本布局内联对象的格式。

  1. int QTextInlineObject.formatIndex (self)

返回描述中的文本布局内联对象的格式为整数。

  1. float QTextInlineObject.height (self)

]($docs-qtextformat.html)

返回内嵌对象的总高度。这等于ascent()+descent()+ 1 。

See also ascent( )descent( )width()和rect( ) 。

  1. bool QTextInlineObject.isValid (self)

返回True如果嵌入对象是有效的,否则返回False 。

  1. QRectF QTextInlineObject.rect (self)

[

返回内嵌对象的矩形。

]($docs-qrectf.html)

See also ascent( )descent()和width( ) 。

  1. QTextInlineObject.setAscent (self, float a)

设置内嵌对象的登顶a

See also ascent( )setDescent( )width()和rect( ) 。

  1. QTextInlineObject.setDescent (self, float d)

设置内嵌对象的体面d

See also descent( )setAscent( )width()和rect( ) 。

  1. QTextInlineObject.setWidth (self, float w)

设置内嵌对象的宽度w

See also width( )ascent( )descent()和rect( ) 。

  1. Qt.LayoutDirection QTextInlineObject.textDirection (self)

[

如果对象应订出从右到左或向右。

  1. int QTextInlineObject.textPosition (self)

内联对象内的文本布局位置。

  1. float QTextInlineObject.width (self)

返回内嵌对象的宽度。

]($docs-qt.html#LayoutDirection-enum)

See also setWidth( )ascent( )descent()和rect( ) 。