class_qwt_text_label.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.20"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Qwt User&#39;s Guide: QwtTextLabel Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectalign" style="padding-left: 0.5em;">
  28. <div id="projectname">Qwt User&#39;s Guide
  29. &#160;<span id="projectnumber">6.1.6</span>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <!-- Generated by Doxygen 1.8.20 -->
  38. <script type="text/javascript">
  39. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  40. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  41. /* @license-end */
  42. </script>
  43. <script type="text/javascript" src="menudata.js"></script>
  44. <script type="text/javascript" src="menu.js"></script>
  45. <script type="text/javascript">
  46. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  47. $(function() {
  48. initMenu('',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. /* @license-end */</script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  66. $(document).ready(function(){initNavTree('class_qwt_text_label.html',''); initResizable(); });
  67. /* @license-end */
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-slots">Public Slots</a> &#124;
  85. <a href="#pub-methods">Public Member Functions</a> &#124;
  86. <a href="#pro-methods">Protected Member Functions</a> &#124;
  87. <a href="class_qwt_text_label-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">QwtTextLabel Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p>A Widget which displays a <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a>.
  93. <a href="class_qwt_text_label.html#details">More...</a></p>
  94. <p><code>#include &lt;<a class="el" href="qwt__text__label_8h_source.html">qwt_text_label.h</a>&gt;</code></p>
  95. <div class="dynheader">
  96. Inheritance diagram for QwtTextLabel:</div>
  97. <div class="dyncontent">
  98. <div class="center"><img src="class_qwt_text_label__inherit__graph.png" border="0" usemap="#a_qwt_text_label_inherit__map" alt="Inheritance graph"/></div>
  99. <map name="_qwt_text_label_inherit__map" id="a_qwt_text_label_inherit__map">
  100. <area shape="rect" title="A Widget which displays a QwtText." alt="" coords="13,80,116,107"/>
  101. <area shape="rect" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend." alt="" coords="5,155,124,181"/>
  102. <area shape="rect" title=" " alt="" coords="30,5,99,32"/>
  103. </map>
  104. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  105. <table class="memberdecls">
  106. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
  107. Public Slots</h2></td></tr>
  108. <tr class="memitem:ab300b9a0a6392e180f2caff41ba2b9b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab300b9a0a6392e180f2caff41ba2b9b8">setText</a> (const QString &amp;, <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> textFormat=<a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a>)</td></tr>
  109. <tr class="separator:ab300b9a0a6392e180f2caff41ba2b9b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ac43ba313b78dccf7aa7433f26059b2e2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ac43ba313b78dccf7aa7433f26059b2e2">setText</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;)</td></tr>
  111. <tr class="separator:ac43ba313b78dccf7aa7433f26059b2e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a6674cebd85cf692d154f967887547e11"><td class="memItemLeft" align="right" valign="top"><a id="a6674cebd85cf692d154f967887547e11"></a>
  113. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a6674cebd85cf692d154f967887547e11">clear</a> ()</td></tr>
  114. <tr class="memdesc:a6674cebd85cf692d154f967887547e11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the text and all <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> attributes. <br /></td></tr>
  115. <tr class="separator:a6674cebd85cf692d154f967887547e11"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. </table><table class="memberdecls">
  117. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  118. Public Member Functions</h2></td></tr>
  119. <tr class="memitem:a95e022e766f4b9675f451482be7d654a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a95e022e766f4b9675f451482be7d654a">QwtTextLabel</a> (QWidget *parent=NULL)</td></tr>
  120. <tr class="separator:a95e022e766f4b9675f451482be7d654a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a1a44e38b02bb398d315affe02bb4ea69"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a1a44e38b02bb398d315affe02bb4ea69">QwtTextLabel</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;, QWidget *parent=NULL)</td></tr>
  122. <tr class="separator:a1a44e38b02bb398d315affe02bb4ea69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:adf8f363200c527a6af4259647304be5a"><td class="memItemLeft" align="right" valign="top"><a id="adf8f363200c527a6af4259647304be5a"></a>
  124. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#adf8f363200c527a6af4259647304be5a">~QwtTextLabel</a> ()</td></tr>
  125. <tr class="memdesc:adf8f363200c527a6af4259647304be5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  126. <tr class="separator:adf8f363200c527a6af4259647304be5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a02113ab776a00ab8bbc83197ce49445e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a02113ab776a00ab8bbc83197ce49445e">setPlainText</a> (const QString &amp;)</td></tr>
  128. <tr class="separator:a02113ab776a00ab8bbc83197ce49445e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a69f0c6b13a6368ecf3e4e7e0e43252c1"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a69f0c6b13a6368ecf3e4e7e0e43252c1">plainText</a> () const</td></tr>
  130. <tr class="separator:a69f0c6b13a6368ecf3e4e7e0e43252c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a65113573cdf1fe4098a324453e11fe4e"><td class="memItemLeft" align="right" valign="top"><a id="a65113573cdf1fe4098a324453e11fe4e"></a>
  132. const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a65113573cdf1fe4098a324453e11fe4e">text</a> () const</td></tr>
  133. <tr class="memdesc:a65113573cdf1fe4098a324453e11fe4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the text. <br /></td></tr>
  134. <tr class="separator:a65113573cdf1fe4098a324453e11fe4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:a10c9a8e239241d72f082e31b4ff1ce09"><td class="memItemLeft" align="right" valign="top"><a id="a10c9a8e239241d72f082e31b4ff1ce09"></a>
  136. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a10c9a8e239241d72f082e31b4ff1ce09">indent</a> () const</td></tr>
  137. <tr class="memdesc:a10c9a8e239241d72f082e31b4ff1ce09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return label's text indent in pixels. <br /></td></tr>
  138. <tr class="separator:a10c9a8e239241d72f082e31b4ff1ce09"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:aad25ab34c219f8d97ec7c39d064ed4a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aad25ab34c219f8d97ec7c39d064ed4a0">setIndent</a> (int)</td></tr>
  140. <tr class="separator:aad25ab34c219f8d97ec7c39d064ed4a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a213b9d779d8f12b6db264d27be188eb5"><td class="memItemLeft" align="right" valign="top"><a id="a213b9d779d8f12b6db264d27be188eb5"></a>
  142. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a213b9d779d8f12b6db264d27be188eb5">margin</a> () const</td></tr>
  143. <tr class="memdesc:a213b9d779d8f12b6db264d27be188eb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return label's text margin in pixels. <br /></td></tr>
  144. <tr class="separator:a213b9d779d8f12b6db264d27be188eb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a833d27574b72bbc135f2972c72382eba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a833d27574b72bbc135f2972c72382eba">setMargin</a> (int)</td></tr>
  146. <tr class="separator:a833d27574b72bbc135f2972c72382eba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:aefd60f5b103f4c66879a9b14a3a3a978"><td class="memItemLeft" align="right" valign="top"><a id="aefd60f5b103f4c66879a9b14a3a3a978"></a>
  148. virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aefd60f5b103f4c66879a9b14a3a3a978">sizeHint</a> () const</td></tr>
  149. <tr class="memdesc:aefd60f5b103f4c66879a9b14a3a3a978"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a size hint. <br /></td></tr>
  150. <tr class="separator:aefd60f5b103f4c66879a9b14a3a3a978"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="memItemLeft" align="right" valign="top"><a id="a8608bb4cc67f8c494f8e15a2f7e80838"></a>
  152. virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a8608bb4cc67f8c494f8e15a2f7e80838">minimumSizeHint</a> () const</td></tr>
  153. <tr class="memdesc:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a minimum size hint. <br /></td></tr>
  154. <tr class="separator:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:ad0e95c1b381a3fa3327181d076969042"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ad0e95c1b381a3fa3327181d076969042">heightForWidth</a> (int) const</td></tr>
  156. <tr class="separator:ad0e95c1b381a3fa3327181d076969042"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:aba181e6b4644df6d9014948f5a02acc2"><td class="memItemLeft" align="right" valign="top">QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aba181e6b4644df6d9014948f5a02acc2">textRect</a> () const</td></tr>
  158. <tr class="separator:aba181e6b4644df6d9014948f5a02acc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:af1e33db74ecf9c4e7aff158db65404c2"><td class="memItemLeft" align="right" valign="top"><a id="af1e33db74ecf9c4e7aff158db65404c2"></a>
  160. virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#af1e33db74ecf9c4e7aff158db65404c2">drawText</a> (QPainter *, const QRectF &amp;)</td></tr>
  161. <tr class="memdesc:af1e33db74ecf9c4e7aff158db65404c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Redraw the text. <br /></td></tr>
  162. <tr class="separator:af1e33db74ecf9c4e7aff158db65404c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. </table><table class="memberdecls">
  164. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  165. Protected Member Functions</h2></td></tr>
  166. <tr class="memitem:ad98067cfa70947e0a60019b2811bdfdb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ad98067cfa70947e0a60019b2811bdfdb">paintEvent</a> (QPaintEvent *)</td></tr>
  167. <tr class="separator:ad98067cfa70947e0a60019b2811bdfdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:ab1d6c248f451517a32c626372670ab51"><td class="memItemLeft" align="right" valign="top"><a id="ab1d6c248f451517a32c626372670ab51"></a>
  169. virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab1d6c248f451517a32c626372670ab51">drawContents</a> (QPainter *)</td></tr>
  170. <tr class="memdesc:ab1d6c248f451517a32c626372670ab51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Redraw the text and focus indicator. <br /></td></tr>
  171. <tr class="separator:ab1d6c248f451517a32c626372670ab51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. </table>
  173. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  174. <div class="textblock"><p>A Widget which displays a <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a>. </p>
  175. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  176. <a id="a95e022e766f4b9675f451482be7d654a"></a>
  177. <h2 class="memtitle"><span class="permalink"><a href="#a95e022e766f4b9675f451482be7d654a">&#9670;&nbsp;</a></span>QwtTextLabel() <span class="overload">[1/2]</span></h2>
  178. <div class="memitem">
  179. <div class="memproto">
  180. <table class="mlabels">
  181. <tr>
  182. <td class="mlabels-left">
  183. <table class="memname">
  184. <tr>
  185. <td class="memname">QwtTextLabel::QwtTextLabel </td>
  186. <td>(</td>
  187. <td class="paramtype">QWidget *&#160;</td>
  188. <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
  189. <td></td>
  190. </tr>
  191. </table>
  192. </td>
  193. <td class="mlabels-right">
  194. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  195. </tr>
  196. </table>
  197. </div><div class="memdoc">
  198. <p>Constructs an empty label. </p><dl class="params"><dt>Parameters</dt><dd>
  199. <table class="params">
  200. <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
  201. </table>
  202. </dd>
  203. </dl>
  204. </div>
  205. </div>
  206. <a id="a1a44e38b02bb398d315affe02bb4ea69"></a>
  207. <h2 class="memtitle"><span class="permalink"><a href="#a1a44e38b02bb398d315affe02bb4ea69">&#9670;&nbsp;</a></span>QwtTextLabel() <span class="overload">[2/2]</span></h2>
  208. <div class="memitem">
  209. <div class="memproto">
  210. <table class="mlabels">
  211. <tr>
  212. <td class="mlabels-left">
  213. <table class="memname">
  214. <tr>
  215. <td class="memname">QwtTextLabel::QwtTextLabel </td>
  216. <td>(</td>
  217. <td class="paramtype">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td>
  218. <td class="paramname"><em>text</em>, </td>
  219. </tr>
  220. <tr>
  221. <td class="paramkey"></td>
  222. <td></td>
  223. <td class="paramtype">QWidget *&#160;</td>
  224. <td class="paramname"><em>parent</em> = <code>NULL</code>&#160;</td>
  225. </tr>
  226. <tr>
  227. <td></td>
  228. <td>)</td>
  229. <td></td><td></td>
  230. </tr>
  231. </table>
  232. </td>
  233. <td class="mlabels-right">
  234. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  235. </tr>
  236. </table>
  237. </div><div class="memdoc">
  238. <p>Constructs a label that displays the text, text </p><dl class="params"><dt>Parameters</dt><dd>
  239. <table class="params">
  240. <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
  241. <tr><td class="paramname">text</td><td>Text </td></tr>
  242. </table>
  243. </dd>
  244. </dl>
  245. </div>
  246. </div>
  247. <h2 class="groupheader">Member Function Documentation</h2>
  248. <a id="ad0e95c1b381a3fa3327181d076969042"></a>
  249. <h2 class="memtitle"><span class="permalink"><a href="#ad0e95c1b381a3fa3327181d076969042">&#9670;&nbsp;</a></span>heightForWidth()</h2>
  250. <div class="memitem">
  251. <div class="memproto">
  252. <table class="mlabels">
  253. <tr>
  254. <td class="mlabels-left">
  255. <table class="memname">
  256. <tr>
  257. <td class="memname">int QwtTextLabel::heightForWidth </td>
  258. <td>(</td>
  259. <td class="paramtype">int&#160;</td>
  260. <td class="paramname"><em>width</em></td><td>)</td>
  261. <td> const</td>
  262. </tr>
  263. </table>
  264. </td>
  265. <td class="mlabels-right">
  266. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  267. </tr>
  268. </table>
  269. </div><div class="memdoc">
  270. <dl class="params"><dt>Parameters</dt><dd>
  271. <table class="params">
  272. <tr><td class="paramname">width</td><td>Width </td></tr>
  273. </table>
  274. </dd>
  275. </dl>
  276. <dl class="section return"><dt>Returns</dt><dd>Preferred height for this widget, given the width. </dd></dl>
  277. </div>
  278. </div>
  279. <a id="ad98067cfa70947e0a60019b2811bdfdb"></a>
  280. <h2 class="memtitle"><span class="permalink"><a href="#ad98067cfa70947e0a60019b2811bdfdb">&#9670;&nbsp;</a></span>paintEvent()</h2>
  281. <div class="memitem">
  282. <div class="memproto">
  283. <table class="mlabels">
  284. <tr>
  285. <td class="mlabels-left">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">void QwtTextLabel::paintEvent </td>
  289. <td>(</td>
  290. <td class="paramtype">QPaintEvent *&#160;</td>
  291. <td class="paramname"><em>event</em></td><td>)</td>
  292. <td></td>
  293. </tr>
  294. </table>
  295. </td>
  296. <td class="mlabels-right">
  297. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  298. </tr>
  299. </table>
  300. </div><div class="memdoc">
  301. <p>Qt paint event </p><dl class="params"><dt>Parameters</dt><dd>
  302. <table class="params">
  303. <tr><td class="paramname">event</td><td>Paint event </td></tr>
  304. </table>
  305. </dd>
  306. </dl>
  307. <p>Reimplemented in <a class="el" href="class_qwt_legend_label.html#a03649851d343dbd2c4128e9e50def6b7">QwtLegendLabel</a>.</p>
  308. </div>
  309. </div>
  310. <a id="a69f0c6b13a6368ecf3e4e7e0e43252c1"></a>
  311. <h2 class="memtitle"><span class="permalink"><a href="#a69f0c6b13a6368ecf3e4e7e0e43252c1">&#9670;&nbsp;</a></span>plainText()</h2>
  312. <div class="memitem">
  313. <div class="memproto">
  314. <table class="memname">
  315. <tr>
  316. <td class="memname">QString QwtTextLabel::plainText </td>
  317. <td>(</td>
  318. <td class="paramname"></td><td>)</td>
  319. <td> const</td>
  320. </tr>
  321. </table>
  322. </div><div class="memdoc">
  323. <p>Interface for the designer plugin</p>
  324. <dl class="section return"><dt>Returns</dt><dd>Text as plain text </dd></dl>
  325. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text_label.html#a02113ab776a00ab8bbc83197ce49445e">setPlainText()</a>, <a class="el" href="class_qwt_text_label.html#a65113573cdf1fe4098a324453e11fe4e" title="Return the text.">text()</a> </dd></dl>
  326. </div>
  327. </div>
  328. <a id="aad25ab34c219f8d97ec7c39d064ed4a0"></a>
  329. <h2 class="memtitle"><span class="permalink"><a href="#aad25ab34c219f8d97ec7c39d064ed4a0">&#9670;&nbsp;</a></span>setIndent()</h2>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <table class="memname">
  333. <tr>
  334. <td class="memname">void QwtTextLabel::setIndent </td>
  335. <td>(</td>
  336. <td class="paramtype">int&#160;</td>
  337. <td class="paramname"><em>indent</em></td><td>)</td>
  338. <td></td>
  339. </tr>
  340. </table>
  341. </div><div class="memdoc">
  342. <p>Set label's text indent in pixels </p><dl class="params"><dt>Parameters</dt><dd>
  343. <table class="params">
  344. <tr><td class="paramname">indent</td><td>Indentation in pixels </td></tr>
  345. </table>
  346. </dd>
  347. </dl>
  348. </div>
  349. </div>
  350. <a id="a833d27574b72bbc135f2972c72382eba"></a>
  351. <h2 class="memtitle"><span class="permalink"><a href="#a833d27574b72bbc135f2972c72382eba">&#9670;&nbsp;</a></span>setMargin()</h2>
  352. <div class="memitem">
  353. <div class="memproto">
  354. <table class="memname">
  355. <tr>
  356. <td class="memname">void QwtTextLabel::setMargin </td>
  357. <td>(</td>
  358. <td class="paramtype">int&#160;</td>
  359. <td class="paramname"><em>margin</em></td><td>)</td>
  360. <td></td>
  361. </tr>
  362. </table>
  363. </div><div class="memdoc">
  364. <p>Set label's margin in pixels </p><dl class="params"><dt>Parameters</dt><dd>
  365. <table class="params">
  366. <tr><td class="paramname">margin</td><td>Margin in pixels </td></tr>
  367. </table>
  368. </dd>
  369. </dl>
  370. </div>
  371. </div>
  372. <a id="a02113ab776a00ab8bbc83197ce49445e"></a>
  373. <h2 class="memtitle"><span class="permalink"><a href="#a02113ab776a00ab8bbc83197ce49445e">&#9670;&nbsp;</a></span>setPlainText()</h2>
  374. <div class="memitem">
  375. <div class="memproto">
  376. <table class="memname">
  377. <tr>
  378. <td class="memname">void QwtTextLabel::setPlainText </td>
  379. <td>(</td>
  380. <td class="paramtype">const QString &amp;&#160;</td>
  381. <td class="paramname"><em>text</em></td><td>)</td>
  382. <td></td>
  383. </tr>
  384. </table>
  385. </div><div class="memdoc">
  386. <p>Interface for the designer plugin - does the same as <a class="el" href="class_qwt_text_label.html#ab300b9a0a6392e180f2caff41ba2b9b8">setText()</a> </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text_label.html#a69f0c6b13a6368ecf3e4e7e0e43252c1">plainText()</a> </dd></dl>
  387. </div>
  388. </div>
  389. <a id="ab300b9a0a6392e180f2caff41ba2b9b8"></a>
  390. <h2 class="memtitle"><span class="permalink"><a href="#ab300b9a0a6392e180f2caff41ba2b9b8">&#9670;&nbsp;</a></span>setText <span class="overload">[1/2]</span></h2>
  391. <div class="memitem">
  392. <div class="memproto">
  393. <table class="mlabels">
  394. <tr>
  395. <td class="mlabels-left">
  396. <table class="memname">
  397. <tr>
  398. <td class="memname">void QwtTextLabel::setText </td>
  399. <td>(</td>
  400. <td class="paramtype">const QString &amp;&#160;</td>
  401. <td class="paramname"><em>text</em>, </td>
  402. </tr>
  403. <tr>
  404. <td class="paramkey"></td>
  405. <td></td>
  406. <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
  407. <td class="paramname"><em>textFormat</em> = <code><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a></code>&#160;</td>
  408. </tr>
  409. <tr>
  410. <td></td>
  411. <td>)</td>
  412. <td></td><td></td>
  413. </tr>
  414. </table>
  415. </td>
  416. <td class="mlabels-right">
  417. <span class="mlabels"><span class="mlabel">slot</span></span> </td>
  418. </tr>
  419. </table>
  420. </div><div class="memdoc">
  421. <p>Change the label's text, keeping all other <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> attributes </p><dl class="params"><dt>Parameters</dt><dd>
  422. <table class="params">
  423. <tr><td class="paramname">text</td><td>New text </td></tr>
  424. <tr><td class="paramname">textFormat</td><td>Format of text</td></tr>
  425. </table>
  426. </dd>
  427. </dl>
  428. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> </dd></dl>
  429. </div>
  430. </div>
  431. <a id="ac43ba313b78dccf7aa7433f26059b2e2"></a>
  432. <h2 class="memtitle"><span class="permalink"><a href="#ac43ba313b78dccf7aa7433f26059b2e2">&#9670;&nbsp;</a></span>setText <span class="overload">[2/2]</span></h2>
  433. <div class="memitem">
  434. <div class="memproto">
  435. <table class="mlabels">
  436. <tr>
  437. <td class="mlabels-left">
  438. <table class="memname">
  439. <tr>
  440. <td class="memname">void QwtTextLabel::setText </td>
  441. <td>(</td>
  442. <td class="paramtype">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td>
  443. <td class="paramname"><em>text</em></td><td>)</td>
  444. <td></td>
  445. </tr>
  446. </table>
  447. </td>
  448. <td class="mlabels-right">
  449. <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
  450. </tr>
  451. </table>
  452. </div><div class="memdoc">
  453. <p>Change the label's text </p><dl class="params"><dt>Parameters</dt><dd>
  454. <table class="params">
  455. <tr><td class="paramname">text</td><td>New text </td></tr>
  456. </table>
  457. </dd>
  458. </dl>
  459. <p>Reimplemented in <a class="el" href="class_qwt_legend_label.html#a2498e1b2e1a17abf63fa4d94a08ebb95">QwtLegendLabel</a>.</p>
  460. </div>
  461. </div>
  462. <a id="aba181e6b4644df6d9014948f5a02acc2"></a>
  463. <h2 class="memtitle"><span class="permalink"><a href="#aba181e6b4644df6d9014948f5a02acc2">&#9670;&nbsp;</a></span>textRect()</h2>
  464. <div class="memitem">
  465. <div class="memproto">
  466. <table class="memname">
  467. <tr>
  468. <td class="memname">QRect QwtTextLabel::textRect </td>
  469. <td>(</td>
  470. <td class="paramname"></td><td>)</td>
  471. <td> const</td>
  472. </tr>
  473. </table>
  474. </div><div class="memdoc">
  475. <p>Calculate geometry for the text in widget coordinates </p><dl class="section return"><dt>Returns</dt><dd>Geometry for the text </dd></dl>
  476. </div>
  477. </div>
  478. </div><!-- contents -->
  479. </div><!-- doc-content -->
  480. <!-- start footer part -->
  481. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  482. <ul>
  483. <li class="navelem"><a class="el" href="class_qwt_text_label.html">QwtTextLabel</a></li>
  484. <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  485. </ul>
  486. </div>
  487. </body>
  488. </html>