123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtTextLabel Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_text_label.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-slots">Public Slots</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_text_label-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtTextLabel Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A Widget which displays a <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a>.
- <a href="class_qwt_text_label.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__text__label_8h_source.html">qwt_text_label.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtTextLabel:</div>
- <div class="dyncontent">
- <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>
- <map name="_qwt_text_label_inherit__map" id="a_qwt_text_label_inherit__map">
- <area shape="rect" title="A Widget which displays a QwtText." alt="" coords="13,80,116,107"/>
- <area shape="rect" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend." alt="" coords="5,155,124,181"/>
- <area shape="rect" title=" " alt="" coords="30,5,99,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
- Public Slots</h2></td></tr>
- <tr class="memitem:ab300b9a0a6392e180f2caff41ba2b9b8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab300b9a0a6392e180f2caff41ba2b9b8">setText</a> (const QString &, <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>
- <tr class="separator:ab300b9a0a6392e180f2caff41ba2b9b8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac43ba313b78dccf7aa7433f26059b2e2"><td class="memItemLeft" align="right" valign="top">virtual void </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> &)</td></tr>
- <tr class="separator:ac43ba313b78dccf7aa7433f26059b2e2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6674cebd85cf692d154f967887547e11"><td class="memItemLeft" align="right" valign="top"><a id="a6674cebd85cf692d154f967887547e11"></a>
- void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a6674cebd85cf692d154f967887547e11">clear</a> ()</td></tr>
- <tr class="memdesc:a6674cebd85cf692d154f967887547e11"><td class="mdescLeft"> </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>
- <tr class="separator:a6674cebd85cf692d154f967887547e11"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a95e022e766f4b9675f451482be7d654a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a95e022e766f4b9675f451482be7d654a">QwtTextLabel</a> (QWidget *parent=NULL)</td></tr>
- <tr class="separator:a95e022e766f4b9675f451482be7d654a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1a44e38b02bb398d315affe02bb4ea69"><td class="memItemLeft" align="right" valign="top"> </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> &, QWidget *parent=NULL)</td></tr>
- <tr class="separator:a1a44e38b02bb398d315affe02bb4ea69"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:adf8f363200c527a6af4259647304be5a"><td class="memItemLeft" align="right" valign="top"><a id="adf8f363200c527a6af4259647304be5a"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#adf8f363200c527a6af4259647304be5a">~QwtTextLabel</a> ()</td></tr>
- <tr class="memdesc:adf8f363200c527a6af4259647304be5a"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:adf8f363200c527a6af4259647304be5a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a02113ab776a00ab8bbc83197ce49445e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a02113ab776a00ab8bbc83197ce49445e">setPlainText</a> (const QString &)</td></tr>
- <tr class="separator:a02113ab776a00ab8bbc83197ce49445e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a69f0c6b13a6368ecf3e4e7e0e43252c1"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a69f0c6b13a6368ecf3e4e7e0e43252c1">plainText</a> () const</td></tr>
- <tr class="separator:a69f0c6b13a6368ecf3e4e7e0e43252c1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a65113573cdf1fe4098a324453e11fe4e"><td class="memItemLeft" align="right" valign="top"><a id="a65113573cdf1fe4098a324453e11fe4e"></a>
- const <a class="el" href="class_qwt_text.html">QwtText</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a65113573cdf1fe4098a324453e11fe4e">text</a> () const</td></tr>
- <tr class="memdesc:a65113573cdf1fe4098a324453e11fe4e"><td class="mdescLeft"> </td><td class="mdescRight">Return the text. <br /></td></tr>
- <tr class="separator:a65113573cdf1fe4098a324453e11fe4e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a10c9a8e239241d72f082e31b4ff1ce09"><td class="memItemLeft" align="right" valign="top"><a id="a10c9a8e239241d72f082e31b4ff1ce09"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a10c9a8e239241d72f082e31b4ff1ce09">indent</a> () const</td></tr>
- <tr class="memdesc:a10c9a8e239241d72f082e31b4ff1ce09"><td class="mdescLeft"> </td><td class="mdescRight">Return label's text indent in pixels. <br /></td></tr>
- <tr class="separator:a10c9a8e239241d72f082e31b4ff1ce09"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aad25ab34c219f8d97ec7c39d064ed4a0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aad25ab34c219f8d97ec7c39d064ed4a0">setIndent</a> (int)</td></tr>
- <tr class="separator:aad25ab34c219f8d97ec7c39d064ed4a0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a213b9d779d8f12b6db264d27be188eb5"><td class="memItemLeft" align="right" valign="top"><a id="a213b9d779d8f12b6db264d27be188eb5"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a213b9d779d8f12b6db264d27be188eb5">margin</a> () const</td></tr>
- <tr class="memdesc:a213b9d779d8f12b6db264d27be188eb5"><td class="mdescLeft"> </td><td class="mdescRight">Return label's text margin in pixels. <br /></td></tr>
- <tr class="separator:a213b9d779d8f12b6db264d27be188eb5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a833d27574b72bbc135f2972c72382eba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a833d27574b72bbc135f2972c72382eba">setMargin</a> (int)</td></tr>
- <tr class="separator:a833d27574b72bbc135f2972c72382eba"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aefd60f5b103f4c66879a9b14a3a3a978"><td class="memItemLeft" align="right" valign="top"><a id="aefd60f5b103f4c66879a9b14a3a3a978"></a>
- virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aefd60f5b103f4c66879a9b14a3a3a978">sizeHint</a> () const</td></tr>
- <tr class="memdesc:aefd60f5b103f4c66879a9b14a3a3a978"><td class="mdescLeft"> </td><td class="mdescRight">Return a size hint. <br /></td></tr>
- <tr class="separator:aefd60f5b103f4c66879a9b14a3a3a978"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="memItemLeft" align="right" valign="top"><a id="a8608bb4cc67f8c494f8e15a2f7e80838"></a>
- virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a8608bb4cc67f8c494f8e15a2f7e80838">minimumSizeHint</a> () const</td></tr>
- <tr class="memdesc:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="mdescLeft"> </td><td class="mdescRight">Return a minimum size hint. <br /></td></tr>
- <tr class="separator:a8608bb4cc67f8c494f8e15a2f7e80838"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad0e95c1b381a3fa3327181d076969042"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ad0e95c1b381a3fa3327181d076969042">heightForWidth</a> (int) const</td></tr>
- <tr class="separator:ad0e95c1b381a3fa3327181d076969042"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aba181e6b4644df6d9014948f5a02acc2"><td class="memItemLeft" align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aba181e6b4644df6d9014948f5a02acc2">textRect</a> () const</td></tr>
- <tr class="separator:aba181e6b4644df6d9014948f5a02acc2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af1e33db74ecf9c4e7aff158db65404c2"><td class="memItemLeft" align="right" valign="top"><a id="af1e33db74ecf9c4e7aff158db65404c2"></a>
- virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#af1e33db74ecf9c4e7aff158db65404c2">drawText</a> (QPainter *, const QRectF &)</td></tr>
- <tr class="memdesc:af1e33db74ecf9c4e7aff158db65404c2"><td class="mdescLeft"> </td><td class="mdescRight">Redraw the text. <br /></td></tr>
- <tr class="separator:af1e33db74ecf9c4e7aff158db65404c2"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:ad98067cfa70947e0a60019b2811bdfdb"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ad98067cfa70947e0a60019b2811bdfdb">paintEvent</a> (QPaintEvent *)</td></tr>
- <tr class="separator:ad98067cfa70947e0a60019b2811bdfdb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab1d6c248f451517a32c626372670ab51"><td class="memItemLeft" align="right" valign="top"><a id="ab1d6c248f451517a32c626372670ab51"></a>
- virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab1d6c248f451517a32c626372670ab51">drawContents</a> (QPainter *)</td></tr>
- <tr class="memdesc:ab1d6c248f451517a32c626372670ab51"><td class="mdescLeft"> </td><td class="mdescRight">Redraw the text and focus indicator. <br /></td></tr>
- <tr class="separator:ab1d6c248f451517a32c626372670ab51"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <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>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a95e022e766f4b9675f451482be7d654a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a95e022e766f4b9675f451482be7d654a">◆ </a></span>QwtTextLabel() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtTextLabel::QwtTextLabel </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructs an empty label. </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a1a44e38b02bb398d315affe02bb4ea69"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1a44e38b02bb398d315affe02bb4ea69">◆ </a></span>QwtTextLabel() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtTextLabel::QwtTextLabel </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_text.html">QwtText</a> & </td>
- <td class="paramname"><em>text</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em> = <code>NULL</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructs a label that displays the text, text </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
- <tr><td class="paramname">text</td><td>Text </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="ad0e95c1b381a3fa3327181d076969042"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad0e95c1b381a3fa3327181d076969042">◆ </a></span>heightForWidth()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">int QwtTextLabel::heightForWidth </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>width</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">width</td><td>Width </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Preferred height for this widget, given the width. </dd></dl>
- </div>
- </div>
- <a id="ad98067cfa70947e0a60019b2811bdfdb"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad98067cfa70947e0a60019b2811bdfdb">◆ </a></span>paintEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::paintEvent </td>
- <td>(</td>
- <td class="paramtype">QPaintEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Qt paint event </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Paint event </td></tr>
- </table>
- </dd>
- </dl>
- <p>Reimplemented in <a class="el" href="class_qwt_legend_label.html#a03649851d343dbd2c4128e9e50def6b7">QwtLegendLabel</a>.</p>
- </div>
- </div>
- <a id="a69f0c6b13a6368ecf3e4e7e0e43252c1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a69f0c6b13a6368ecf3e4e7e0e43252c1">◆ </a></span>plainText()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QString QwtTextLabel::plainText </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Interface for the designer plugin</p>
- <dl class="section return"><dt>Returns</dt><dd>Text as plain text </dd></dl>
- <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>
- </div>
- </div>
- <a id="aad25ab34c219f8d97ec7c39d064ed4a0"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aad25ab34c219f8d97ec7c39d064ed4a0">◆ </a></span>setIndent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::setIndent </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>indent</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set label's text indent in pixels </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">indent</td><td>Indentation in pixels </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a833d27574b72bbc135f2972c72382eba"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a833d27574b72bbc135f2972c72382eba">◆ </a></span>setMargin()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::setMargin </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>margin</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set label's margin in pixels </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">margin</td><td>Margin in pixels </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a02113ab776a00ab8bbc83197ce49445e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a02113ab776a00ab8bbc83197ce49445e">◆ </a></span>setPlainText()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::setPlainText </td>
- <td>(</td>
- <td class="paramtype">const QString & </td>
- <td class="paramname"><em>text</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- </div>
- </div>
- <a id="ab300b9a0a6392e180f2caff41ba2b9b8"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab300b9a0a6392e180f2caff41ba2b9b8">◆ </a></span>setText <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::setText </td>
- <td>(</td>
- <td class="paramtype">const QString & </td>
- <td class="paramname"><em>text</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> </td>
- <td class="paramname"><em>textFormat</em> = <code><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a></code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- <table class="params">
- <tr><td class="paramname">text</td><td>New text </td></tr>
- <tr><td class="paramname">textFormat</td><td>Format of text</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- </div>
- </div>
- <a id="ac43ba313b78dccf7aa7433f26059b2e2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac43ba313b78dccf7aa7433f26059b2e2">◆ </a></span>setText <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtTextLabel::setText </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_text.html">QwtText</a> & </td>
- <td class="paramname"><em>text</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Change the label's text </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">text</td><td>New text </td></tr>
- </table>
- </dd>
- </dl>
- <p>Reimplemented in <a class="el" href="class_qwt_legend_label.html#a2498e1b2e1a17abf63fa4d94a08ebb95">QwtLegendLabel</a>.</p>
- </div>
- </div>
- <a id="aba181e6b4644df6d9014948f5a02acc2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aba181e6b4644df6d9014948f5a02acc2">◆ </a></span>textRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QRect QwtTextLabel::textRect </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate geometry for the text in widget coordinates </p><dl class="section return"><dt>Returns</dt><dd>Geometry for the text </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_text_label.html">QwtTextLabel</a></li>
- <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>
- </ul>
- </div>
- </body>
- </html>
|