~ubuntu-branches/ubuntu/lucid/python-qt4/lucid

« back to all changes in this revision

Viewing changes to doc/html/qgraphicstextitem.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall, Torsten Marek, Michael Casadevall
  • Date: 2009-10-07 09:53:11 UTC
  • mfrom: (1.1.14 upstream) (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091007095311-sdk6pqd0n4rzhaeg
Tags: 4.6-1
[ Torsten Marek ]
* debian/rules
  - Fix .noinit creation for Python 2.6 by using py_sitename in install-arch-%

[ Michael Casadevall ]
* New upstream release
* debian/control:
  - Updated for new release of sip4

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
<p>See also <a href="qgraphicssimpletextitem.html">QGraphicsSimpleTextItem</a>, <a href="qgraphicspathitem.html">QGraphicsPathItem</a>, <a href="qgraphicsrectitem.html">QGraphicsRectItem</a>, <a href="qgraphicsellipseitem.html">QGraphicsEllipseItem</a>, <a href="qgraphicspixmapitem.html">QGraphicsPixmapItem</a>, <a href="qgraphicspolygonitem.html">QGraphicsPolygonItem</a>, <a href="qgraphicslineitem.html">QGraphicsLineItem</a>, and <a href="graphicsview.html">The Graphics View Framework</a>.</p>
19
19
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QGraphicsTextItem" />QGraphicsTextItem.__init__ (<i>self</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>parent</i>&#160;=&#160;None, <a href="qgraphicsscene.html">QGraphicsScene</a>&#160;<i>scene</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>The <i>scene</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qgraphicstextitem.html">QGraphicsTextItem</a>. <i>parent</i> is passed to <a href="qgraphicsitem.html">QGraphicsItem</a>'s constructor.</p>
20
20
<p>See also <a href="qgraphicsscene.html#addItem">QGraphicsScene.addItem</a>().</p>
21
 
<h3 class="fn"><a name="QGraphicsTextItem-2" />QGraphicsTextItem.__init__ (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>parent</i>&#160;=&#160;None, <a href="qgraphicsscene.html">QGraphicsScene</a>&#160;<i>scene</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>The <i>scene</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qgraphicstextitem.html">QGraphicsTextItem</a>, using <i>text</i> as the default plain text. <i>parent</i> is passed to <a href="qgraphicsitem.html">QGraphicsItem</a>'s constructor.</p>
 
21
<h3 class="fn"><a name="QGraphicsTextItem-2" />QGraphicsTextItem.__init__ (<i>self</i>, QString&#160;<i>text</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>parent</i>&#160;=&#160;None, <a href="qgraphicsscene.html">QGraphicsScene</a>&#160;<i>scene</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>The <i>scene</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qgraphicstextitem.html">QGraphicsTextItem</a>, using <i>text</i> as the default plain text. <i>parent</i> is passed to <a href="qgraphicsitem.html">QGraphicsItem</a>'s constructor.</p>
22
22
<p>See also <a href="qgraphicsscene.html#addItem">QGraphicsScene.addItem</a>().</p>
23
23
<h3 class="fn"><a name="adjustSize" />QGraphicsTextItem.adjustSize (<i>self</i>)</h3><p>Adjusts the text item to a reasonable size.</p>
24
24
<h3 class="fn"><a name="boundingRect" /><a href="qrectf.html">QRectF</a> QGraphicsTextItem.boundingRect (<i>self</i>)</h3><h3 class="fn"><a name="contains" />bool QGraphicsTextItem.contains (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>point</i>)</h3><h3 class="fn"><a name="contextMenuEvent" />QGraphicsTextItem.contextMenuEvent (<i>self</i>, <a href="qgraphicsscenecontextmenuevent.html">QGraphicsSceneContextMenuEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="defaultTextColor" /><a href="qcolor.html">QColor</a> QGraphicsTextItem.defaultTextColor (<i>self</i>)</h3><p>Returns the default text color that is used to for unformatted text.</p>
27
27
<p>See also <a href="qgraphicstextitem.html#setDocument">setDocument</a>().</p>
28
28
<h3 class="fn"><a name="dragEnterEvent" />QGraphicsTextItem.dragEnterEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="dragLeaveEvent" />QGraphicsTextItem.dragLeaveEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="dragMoveEvent" />QGraphicsTextItem.dragMoveEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="dropEvent" />QGraphicsTextItem.dropEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="focusInEvent" />QGraphicsTextItem.focusInEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="focusOutEvent" />QGraphicsTextItem.focusOutEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QGraphicsTextItem.font (<i>self</i>)</h3><p>Returns the item's font, which is used to render the text.</p>
29
29
<p>See also <a href="qgraphicstextitem.html#setFont">setFont</a>().</p>
30
 
<h3 class="fn"><a name="hoverEnterEvent" />QGraphicsTextItem.hoverEnterEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="hoverLeaveEvent" />QGraphicsTextItem.hoverLeaveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="hoverMoveEvent" />QGraphicsTextItem.hoverMoveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="inputMethodEvent" />QGraphicsTextItem.inputMethodEvent (<i>self</i>, <a href="qinputmethodevent.html">QInputMethodEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="inputMethodQuery" /><a href="qvariant.html">QVariant</a> QGraphicsTextItem.inputMethodQuery (<i>self</i>, <a href="qt.html#InputMethodQuery-enum">Qt.InputMethodQuery</a>&#160;<i>query</i>)</h3><h3 class="fn"><a name="isObscuredBy" />bool QGraphicsTextItem.isObscuredBy (<i>self</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>item</i>)</h3><h3 class="fn"><a name="keyPressEvent" />QGraphicsTextItem.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="keyReleaseEvent" />QGraphicsTextItem.keyReleaseEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseDoubleClickEvent" />QGraphicsTextItem.mouseDoubleClickEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseMoveEvent" />QGraphicsTextItem.mouseMoveEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mousePressEvent" />QGraphicsTextItem.mousePressEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseReleaseEvent" />QGraphicsTextItem.mouseReleaseEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="opaqueArea" /><a href="qpainterpath.html">QPainterPath</a> QGraphicsTextItem.opaqueArea (<i>self</i>)</h3><h3 class="fn"><a name="openExternalLinks" />bool QGraphicsTextItem.openExternalLinks (<i>self</i>)</h3><h3 class="fn"><a name="paint" />QGraphicsTextItem.paint (<i>self</i>, <a href="qpainter.html">QPainter</a>&#160;<i>painter</i>, <a href="qstyleoptiongraphicsitem.html">QStyleOptionGraphicsItem</a>&#160;<i>option</i>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>)</h3><h3 class="fn"><a name="sceneEvent" />bool QGraphicsTextItem.sceneEvent (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="setDefaultTextColor" />QGraphicsTextItem.setDefaultTextColor (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><p>Sets the color for unformatted text to <i>col</i>.</p>
 
30
<h3 class="fn"><a name="hoverEnterEvent" />QGraphicsTextItem.hoverEnterEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="hoverLeaveEvent" />QGraphicsTextItem.hoverLeaveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="hoverMoveEvent" />QGraphicsTextItem.hoverMoveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="inputMethodEvent" />QGraphicsTextItem.inputMethodEvent (<i>self</i>, <a href="qinputmethodevent.html">QInputMethodEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="inputMethodQuery" />QVariant QGraphicsTextItem.inputMethodQuery (<i>self</i>, <a href="qt.html#InputMethodQuery-enum">Qt.InputMethodQuery</a>&#160;<i>query</i>)</h3><h3 class="fn"><a name="isObscuredBy" />bool QGraphicsTextItem.isObscuredBy (<i>self</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>item</i>)</h3><h3 class="fn"><a name="keyPressEvent" />QGraphicsTextItem.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="keyReleaseEvent" />QGraphicsTextItem.keyReleaseEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseDoubleClickEvent" />QGraphicsTextItem.mouseDoubleClickEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseMoveEvent" />QGraphicsTextItem.mouseMoveEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mousePressEvent" />QGraphicsTextItem.mousePressEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseReleaseEvent" />QGraphicsTextItem.mouseReleaseEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="opaqueArea" /><a href="qpainterpath.html">QPainterPath</a> QGraphicsTextItem.opaqueArea (<i>self</i>)</h3><h3 class="fn"><a name="openExternalLinks" />bool QGraphicsTextItem.openExternalLinks (<i>self</i>)</h3><h3 class="fn"><a name="paint" />QGraphicsTextItem.paint (<i>self</i>, <a href="qpainter.html">QPainter</a>&#160;<i>painter</i>, <a href="qstyleoptiongraphicsitem.html">QStyleOptionGraphicsItem</a>&#160;<i>option</i>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>)</h3><h3 class="fn"><a name="sceneEvent" />bool QGraphicsTextItem.sceneEvent (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="setDefaultTextColor" />QGraphicsTextItem.setDefaultTextColor (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><p>Sets the color for unformatted text to <i>col</i>.</p>
31
31
<p>See also <a href="qgraphicstextitem.html#defaultTextColor">defaultTextColor</a>().</p>
32
32
<h3 class="fn"><a name="setDocument" />QGraphicsTextItem.setDocument (<i>self</i>, <a href="qtextdocument.html">QTextDocument</a>&#160;<i>document</i>)</h3><p>Sets the text document <i>document</i> on the item.</p>
33
33
<p>See also <a href="qgraphicstextitem.html#document">document</a>().</p>
34
34
<h3 class="fn"><a name="setFont" />QGraphicsTextItem.setFont (<i>self</i>, <a href="qfont.html">QFont</a>&#160;<i>font</i>)</h3><p>Sets the font used to render the text item to <i>font</i>.</p>
35
35
<p>See also <a href="qgraphicstextitem.html#font">font</a>().</p>
36
 
<h3 class="fn"><a name="setHtml" />QGraphicsTextItem.setHtml (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>html</i>)</h3><p>Sets the item's text to <i>text</i>, assuming that text is HTML formatted. If the item has keyboard input focus, this function will also call <a href="qgraphicsitem.html#ensureVisible">ensureVisible</a>() to ensure that the text is visible in all viewports.</p>
 
36
<h3 class="fn"><a name="setHtml" />QGraphicsTextItem.setHtml (<i>self</i>, QString&#160;<i>html</i>)</h3><p>Sets the item's text to <i>text</i>, assuming that text is HTML formatted. If the item has keyboard input focus, this function will also call <a href="qgraphicsitem.html#ensureVisible">ensureVisible</a>() to ensure that the text is visible in all viewports.</p>
37
37
<p>See also <a href="qgraphicstextitem.html#toHtml">toHtml</a>(), <a href="qgraphicsitem.html#hasFocus">hasFocus</a>(), and <a href="qgraphicssimpletextitem.html">QGraphicsSimpleTextItem</a>.</p>
38
 
<h3 class="fn"><a name="setOpenExternalLinks" />QGraphicsTextItem.setOpenExternalLinks (<i>self</i>, bool&#160;<i>open</i>)</h3><h3 class="fn"><a name="setPlainText" />QGraphicsTextItem.setPlainText (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>Sets the item's text to <i>text</i>. If the item has keyboard input focus, this function will also call <a href="qgraphicsitem.html#ensureVisible">ensureVisible</a>() to ensure that the text is visible in all viewports.</p>
 
38
<h3 class="fn"><a name="setOpenExternalLinks" />QGraphicsTextItem.setOpenExternalLinks (<i>self</i>, bool&#160;<i>open</i>)</h3><h3 class="fn"><a name="setPlainText" />QGraphicsTextItem.setPlainText (<i>self</i>, QString&#160;<i>text</i>)</h3><p>Sets the item's text to <i>text</i>. If the item has keyboard input focus, this function will also call <a href="qgraphicsitem.html#ensureVisible">ensureVisible</a>() to ensure that the text is visible in all viewports.</p>
39
39
<p>See also <a href="qgraphicstextitem.html#toHtml">toHtml</a>() and <a href="qgraphicsitem.html#hasFocus">hasFocus</a>().</p>
40
40
<h3 class="fn"><a name="setTabChangesFocus" />QGraphicsTextItem.setTabChangesFocus (<i>self</i>, bool&#160;<i>b</i>)</h3><p>If <i>b</i> is true, the <b>Tab</b> key will cause the widget to change focus; otherwise, the tab key will insert a tab into the document.</p>
41
41
<p>In some occasions text edits should not allow the user to input tabulators or change indentation using the <b>Tab</b> key, as this breaks the focus chain. The default is false.</p>
59
59
<h3 class="fn"><a name="textWidth" />float QGraphicsTextItem.textWidth (<i>self</i>)</h3><p>Returns the text width.</p>
60
60
<p>The width is calculated with the <a href="qtextdocument.html">QTextDocument</a> that <a href="qgraphicstextitem.html">QGraphicsTextItem</a> keeps internally.</p>
61
61
<p>See also <a href="qgraphicstextitem.html#setTextWidth">setTextWidth</a>() and <a href="qtextdocument.html#textWidth-prop">QTextDocument.textWidth</a>().</p>
62
 
<h3 class="fn"><a name="toHtml" /><a href="qstring.html">QString</a> QGraphicsTextItem.toHtml (<i>self</i>)</h3><p>Returns the item's text converted to HTML, or an empty <a href="qstring.html">QString</a> if no text has been set.</p>
 
62
<h3 class="fn"><a name="toHtml" />QString QGraphicsTextItem.toHtml (<i>self</i>)</h3><p>Returns the item's text converted to HTML, or an empty <a href="qstring.html">QString</a> if no text has been set.</p>
63
63
<p>See also <a href="qgraphicstextitem.html#setHtml">setHtml</a>().</p>
64
 
<h3 class="fn"><a name="toPlainText" /><a href="qstring.html">QString</a> QGraphicsTextItem.toPlainText (<i>self</i>)</h3><p>Returns the item's text converted to plain text, or an empty <a href="qstring.html">QString</a> if no text has been set.</p>
 
64
<h3 class="fn"><a name="toPlainText" />QString QGraphicsTextItem.toPlainText (<i>self</i>)</h3><p>Returns the item's text converted to plain text, or an empty <a href="qstring.html">QString</a> if no text has been set.</p>
65
65
<p>See also <a href="qgraphicstextitem.html#setPlainText">setPlainText</a>().</p>
66
66
<p /><h3 class="fn"><a name="type" />int QGraphicsTextItem.type (<i>self</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="linkActivated" />void linkActivated (const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the user clicks on a link on a text item that enables <a href="qt.html#TextInteractionFlag-enum">Qt.LinksAccessibleByMouse</a> or <a href="qt.html#TextInteractionFlag-enum">Qt.LinksAccessibleByKeyboard</a>. <i>link</i> is the link that was clicked.</p>
67
67
<p>See also <a href="qgraphicstextitem.html#setTextInteractionFlags">setTextInteractionFlags</a>().</p>
68
68
<h3 class="fn"><a name="linkHovered" />void linkHovered (const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the user hovers over a link on a text item that enables <a href="qt.html#TextInteractionFlag-enum">Qt.LinksAccessibleByMouse</a>. <i>link</i> is the link that was hovered over.</p>
69
69
<p>See also <a href="qgraphicstextitem.html#setTextInteractionFlags">setTextInteractionFlags</a>().</p>
70
 
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.5.4 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt&#160;4.5.1</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'
 
70
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.6 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt&#160;4.5.2</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'