<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qtextoption.cpp --> <title>QTextOption Class | Qt GUI 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QTextOption</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QTextOption Class</h1> <!-- $$$QTextOption-brief --> <p>The <a href="qtextoption.html">QTextOption</a> class provides a description of general rich text properties. <a href="#details">More...</a></p> <!-- @@@QTextOption --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QTextOption></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr></table></div><ul> <li><a href="qtextoption-members.html">List of all members, including inherited members</a></li> <li><a href="qtextoption-obsolete.html">Obsolete members</a></li> </ul> <p><b>Note:</b> All functions in this class are reentrant.</p> <a name="public-types"></a> <h2 id="public-types">Public Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qtextoption-tab.html">Tab</a></b></td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#Flag-enum">Flag</a></b> { IncludeTrailingSpaces, ShowTabsAndSpaces, ShowLineAndParagraphSeparators, ShowDocumentTerminator, AddSpaceForLineAndParagraphSeparators, SuppressColors }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#Flag-enum">Flags</a></b></td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#TabType-enum">TabType</a></b> { LeftTab, RightTab, CenterTab, DelimiterTab }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#WrapMode-enum">WrapMode</a></b> { NoWrap, WordWrap, ManualWrap, WrapAnywhere, WrapAtWordBoundaryOrAnywhere }</td></tr> </table></div> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#QTextOption">QTextOption</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#QTextOption-1">QTextOption</a></b>(Qt::Alignment <i>alignment</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#QTextOption-2">QTextOption</a></b>(const QTextOption &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#dtor.QTextOption">~QTextOption</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#alignment">alignment</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QTextOption::Flags </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#flags">flags</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setAlignment">setAlignment</a></b>(Qt::Alignment <i>alignment</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setFlags">setFlags</a></b>(QTextOption::Flags <i>flags</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTabArray">setTabArray</a></b>(const QList<qreal> &<i>tabStops</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTabStopDistance">setTabStopDistance</a></b>(qreal <i>tabStopDistance</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTabs">setTabs</a></b>(const QList<QTextOption::Tab> &<i>tabStops</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTextDirection">setTextDirection</a></b>(Qt::LayoutDirection <i>direction</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setUseDesignMetrics">setUseDesignMetrics</a></b>(bool <i>enable</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setWrapMode">setWrapMode</a></b>(QTextOption::WrapMode <i>mode</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QList<qreal> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#tabArray">tabArray</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#tabStopDistance">tabStopDistance</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QList<QTextOption::Tab> </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#tabs">tabs</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt::LayoutDirection </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#textDirection">textDirection</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#useDesignMetrics">useDesignMetrics</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QTextOption::WrapMode </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#wrapMode">wrapMode</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QTextOption &</td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#operator-eq">operator=</a></b>(const QTextOption &<i>other</i>)</td></tr> </table></div> <a name="details"></a> <!-- $$$QTextOption-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qtextoption.html">QTextOption</a> class provides a description of general rich text properties.</p> <p><a href="qtextoption.html">QTextOption</a> is used to encapsulate common rich text properties in a single object. It contains information about text alignment, layout direction, word wrapping, and other standard properties associated with text rendering and layout.</p> </div> <p><b>See also </b><a href="../qtwidgets/qtextedit.html">QTextEdit</a>, <a href="qtextdocument.html">QTextDocument</a>, and <a href="qtextcursor.html">QTextCursor</a>.</p> <!-- @@@QTextOption --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$Flag$$$ShowTabsAndSpaces$$$ShowLineAndParagraphSeparators$$$AddSpaceForLineAndParagraphSeparators$$$SuppressColors$$$ShowDocumentTerminator$$$IncludeTrailingSpaces --> <h3 class="flags" id="Flag-enum"><a name="Flag-enum"></a>enum QTextOption::<span class="name">Flag</span><br/>flags QTextOption::<span class="name">Flags</span></h3> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QTextOption::IncludeTrailingSpaces</code></td><td class="topAlign tblval"><code>0x80000000</code></td><td class="topAlign">When this option is set, <a href="qtextline.html#naturalTextWidth">QTextLine::naturalTextWidth</a>() and naturalTextRect() will return a value that includes the width of trailing spaces in the text; otherwise this width is excluded.</td></tr> <tr><td class="topAlign"><code>QTextOption::ShowTabsAndSpaces</code></td><td class="topAlign tblval"><code>0x1</code></td><td class="topAlign">Visualize spaces with little dots, and tabs with little arrows. Non-breaking spaces are shown differently to breaking spaces.</td></tr> <tr><td class="topAlign"><code>QTextOption::ShowLineAndParagraphSeparators</code></td><td class="topAlign tblval"><code>0x2</code></td><td class="topAlign">Visualize line and paragraph separators with appropriate symbol characters.</td></tr> <tr><td class="topAlign"><code>QTextOption::ShowDocumentTerminator</code></td><td class="topAlign tblval"><code>0x10</code></td><td class="topAlign">Visualize the end of the document with a section sign. This enum value was added in Qt 5.7.</td></tr> <tr><td class="topAlign"><code>QTextOption::AddSpaceForLineAndParagraphSeparators</code></td><td class="topAlign tblval"><code>0x4</code></td><td class="topAlign">While determining the line-break positions take into account the space added for drawing a separator character.</td></tr> <tr><td class="topAlign"><code>QTextOption::SuppressColors</code></td><td class="topAlign tblval"><code>0x8</code></td><td class="topAlign">Suppress all color changes in the character formats (except the main selection).</td></tr> </table></div> <p>The Flags type is a typedef for <a href="../qtcore/qflags.html">QFlags</a><Flag>. It stores an OR combination of Flag values.</p> <!-- @@@Flag --> <!-- $$$TabType$$$LeftTab$$$RightTab$$$CenterTab$$$DelimiterTab --> <h3 class="fn" id="TabType-enum"><a name="TabType-enum"></a>enum QTextOption::<span class="name">TabType</span></h3> <p>This enum holds the different types of tabulator</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QTextOption::LeftTab</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">A left-tab</td></tr> <tr><td class="topAlign"><code>QTextOption::RightTab</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">A right-tab</td></tr> <tr><td class="topAlign"><code>QTextOption::CenterTab</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">A centered-tab</td></tr> <tr><td class="topAlign"><code>QTextOption::DelimiterTab</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">A tab stopping at a certain delimiter-character</td></tr> </table></div> <p>This enum was introduced or modified in Qt 4.4.</p> <!-- @@@TabType --> <!-- $$$WrapMode$$$NoWrap$$$WordWrap$$$ManualWrap$$$WrapAnywhere$$$WrapAtWordBoundaryOrAnywhere --> <h3 class="fn" id="WrapMode-enum"><a name="WrapMode-enum"></a>enum QTextOption::<span class="name">WrapMode</span></h3> <p>This enum describes how text is wrapped in a document.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QTextOption::NoWrap</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Text is not wrapped at all.</td></tr> <tr><td class="topAlign"><code>QTextOption::WordWrap</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Text is wrapped at word boundaries.</td></tr> <tr><td class="topAlign"><code>QTextOption::ManualWrap</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Same as QTextOption::NoWrap</td></tr> <tr><td class="topAlign"><code>QTextOption::WrapAnywhere</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Text can be wrapped at any point on a line, even if it occurs in the middle of a word.</td></tr> <tr><td class="topAlign"><code>QTextOption::WrapAtWordBoundaryOrAnywhere</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.</td></tr> </table></div> <!-- @@@WrapMode --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QTextOption[overload1]$$$QTextOption --> <h3 class="fn" id="QTextOption"><a name="QTextOption"></a>QTextOption::<span class="name">QTextOption</span>()</h3> <p>Constructs a text option with default properties for text. The text alignment property is set to <a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>. The word wrap property is set to <a href="qtextoption.html#WrapMode-enum">QTextOption::WordWrap</a>. The using of design metrics flag is set to false.</p> <!-- @@@QTextOption --> <!-- $$$QTextOption$$$QTextOptionQt::Alignment --> <h3 class="fn" id="QTextOption-1"><a name="QTextOption-1"></a>QTextOption::<span class="name">QTextOption</span>(<span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i>)</h3> <p>Constructs a text option with the given <i>alignment</i> for text. The word wrap property is set to <a href="qtextoption.html#WrapMode-enum">QTextOption::WordWrap</a>. The using of design metrics flag is set to false.</p> <!-- @@@QTextOption --> <!-- $$$QTextOption$$$QTextOptionconstQTextOption& --> <h3 class="fn" id="QTextOption-2"><a name="QTextOption-2"></a>QTextOption::<span class="name">QTextOption</span>(const <span class="type"><a href="qtextoption.html#QTextOption">QTextOption</a></span> &<i>other</i>)</h3> <p>Construct a copy of the <i>other</i> text option.</p> <!-- @@@QTextOption --> <!-- $$$~QTextOption[overload1]$$$~QTextOption --> <h3 class="fn" id="dtor.QTextOption"><a name="dtor.QTextOption"></a>QTextOption::<span class="name">~QTextOption</span>()</h3> <p>Destroys the text option.</p> <!-- @@@~QTextOption --> <!-- $$$alignment[overload1]$$$alignment --> <h3 class="fn" id="alignment"><a name="alignment"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QTextOption::<span class="name">alignment</span>() const</h3> <p>Returns the text alignment defined by the option.</p> <p><b>See also </b><a href="qtextoption.html#setAlignment">setAlignment</a>().</p> <!-- @@@alignment --> <!-- $$$flags[overload1]$$$flags --> <h3 class="fn" id="flags"><a name="flags"></a><span class="type"><a href="qtextoption.html#Flag-enum">QTextOption::Flags</a></span> QTextOption::<span class="name">flags</span>() const</h3> <p>Returns the flags associated with the option.</p> <p><b>See also </b><a href="qtextoption.html#setFlags">setFlags</a>().</p> <!-- @@@flags --> <!-- $$$setAlignment[overload1]$$$setAlignmentQt::Alignment --> <h3 class="fn" id="setAlignment"><a name="setAlignment"></a><span class="type">void</span> QTextOption::<span class="name">setAlignment</span>(<span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i>)</h3> <p>Sets the option's text alignment to the specified <i>alignment</i>.</p> <p><b>See also </b><a href="qtextoption.html#alignment">alignment</a>().</p> <!-- @@@setAlignment --> <!-- $$$setFlags[overload1]$$$setFlagsQTextOption::Flags --> <h3 class="fn" id="setFlags"><a name="setFlags"></a><span class="type">void</span> QTextOption::<span class="name">setFlags</span>(<span class="type"><a href="qtextoption.html#Flag-enum">QTextOption::Flags</a></span> <i>flags</i>)</h3> <p>Sets the flags associated with the option to the given <i>flags</i>.</p> <p><b>See also </b><a href="qtextoption.html#flags">flags</a>().</p> <!-- @@@setFlags --> <!-- $$$setTabArray[overload1]$$$setTabArrayconstQList<qreal>& --> <h3 class="fn" id="setTabArray"><a name="setTabArray"></a><span class="type">void</span> QTextOption::<span class="name">setTabArray</span>(const <span class="type">QList</span><<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span>> &<i>tabStops</i>)</h3> <p>Sets the tab positions for the text layout to those specified by <i>tabStops</i>.</p> <p><b>See also </b><a href="qtextoption.html#tabArray">tabArray</a>(), <a href="qtextoption.html#setTabStopDistance">setTabStopDistance</a>(), and <a href="qtextoption.html#setTabs">setTabs</a>().</p> <!-- @@@setTabArray --> <!-- $$$setTabStopDistance[overload1]$$$setTabStopDistanceqreal --> <h3 class="fn" id="setTabStopDistance"><a name="setTabStopDistance"></a><span class="type">void</span> QTextOption::<span class="name">setTabStopDistance</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>tabStopDistance</i>)</h3> <p>Sets the default distance in device units between tab stops to the value specified by <i>tabStopDistance</i>.</p> <p>This function was introduced in Qt 5.10.</p> <p><b>See also </b><a href="qtextoption.html#tabStopDistance">tabStopDistance</a>(), <a href="qtextoption.html#setTabArray">setTabArray</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption.html#tabs">tabs</a>().</p> <!-- @@@setTabStopDistance --> <!-- $$$setTabs[overload1]$$$setTabsconstQList<QTextOption::Tab>& --> <h3 class="fn" id="setTabs"><a name="setTabs"></a><span class="type">void</span> QTextOption::<span class="name">setTabs</span>(const <span class="type">QList</span><<span class="type"><a href="qtextoption-tab.html">QTextOption::Tab</a></span>> &<i>tabStops</i>)</h3> <p>Sets the tab positions for the text layout to those specified by <i>tabStops</i>.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qtextoption.html#tabs">tabs</a>() and <a href="qtextoption-obsolete.html#tabStop">tabStop</a>().</p> <!-- @@@setTabs --> <!-- $$$setTextDirection[overload1]$$$setTextDirectionQt::LayoutDirection --> <h3 class="fn" id="setTextDirection"><a name="setTextDirection"></a><span class="type">void</span> QTextOption::<span class="name">setTextDirection</span>(<span class="type"><a href="../qtcore/qt.html#LayoutDirection-enum">Qt::LayoutDirection</a></span> <i>direction</i>)</h3> <p>Sets the direction of the text layout defined by the option to the given <i>direction</i>.</p> <p><b>See also </b><a href="qtextoption.html#textDirection">textDirection</a>().</p> <!-- @@@setTextDirection --> <!-- $$$setUseDesignMetrics[overload1]$$$setUseDesignMetricsbool --> <h3 class="fn" id="setUseDesignMetrics"><a name="setUseDesignMetrics"></a><span class="type">void</span> QTextOption::<span class="name">setUseDesignMetrics</span>(<span class="type">bool</span> <i>enable</i>)</h3> <p>If <i>enable</i> is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).</p> <p><b>See also </b><a href="qtextoption.html#useDesignMetrics">useDesignMetrics</a>().</p> <!-- @@@setUseDesignMetrics --> <!-- $$$setWrapMode[overload1]$$$setWrapModeQTextOption::WrapMode --> <h3 class="fn" id="setWrapMode"><a name="setWrapMode"></a><span class="type">void</span> QTextOption::<span class="name">setWrapMode</span>(<span class="type"><a href="qtextoption.html#WrapMode-enum">QTextOption::WrapMode</a></span> <i>mode</i>)</h3> <p>Sets the option's text wrap mode to the given <i>mode</i>.</p> <p><b>See also </b><a href="qtextoption.html#wrapMode">wrapMode</a>().</p> <!-- @@@setWrapMode --> <!-- $$$tabArray[overload1]$$$tabArray --> <h3 class="fn" id="tabArray"><a name="tabArray"></a><span class="type">QList</span><<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span>> QTextOption::<span class="name">tabArray</span>() const</h3> <p>Returns a list of tab positions defined for the text layout.</p> <p><b>See also </b><a href="qtextoption.html#setTabArray">setTabArray</a>() and <a href="qtextoption-obsolete.html#tabStop">tabStop</a>().</p> <!-- @@@tabArray --> <!-- $$$tabStopDistance[overload1]$$$tabStopDistance --> <h3 class="fn" id="tabStopDistance"><a name="tabStopDistance"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QTextOption::<span class="name">tabStopDistance</span>() const</h3> <p>Returns the distance in device units between tab stops.</p> <p>This function was introduced in Qt 5.10.</p> <p><b>See also </b><a href="qtextoption.html#setTabStopDistance">setTabStopDistance</a>(), <a href="qtextoption.html#tabArray">tabArray</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption.html#tabs">tabs</a>().</p> <!-- @@@tabStopDistance --> <!-- $$$tabs[overload1]$$$tabs --> <h3 class="fn" id="tabs"><a name="tabs"></a><span class="type">QList</span><<span class="type"><a href="qtextoption-tab.html">QTextOption::Tab</a></span>> QTextOption::<span class="name">tabs</span>() const</h3> <p>Returns a list of tab positions defined for the text layout.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qtextoption.html#tabStopDistance">tabStopDistance</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption-obsolete.html#setTabStop">setTabStop</a>().</p> <!-- @@@tabs --> <!-- $$$textDirection[overload1]$$$textDirection --> <h3 class="fn" id="textDirection"><a name="textDirection"></a><span class="type"><a href="../qtcore/qt.html#LayoutDirection-enum">Qt::LayoutDirection</a></span> QTextOption::<span class="name">textDirection</span>() const</h3> <p>Returns the direction of the text layout defined by the option.</p> <p><b>See also </b><a href="qtextoption.html#setTextDirection">setTextDirection</a>().</p> <!-- @@@textDirection --> <!-- $$$useDesignMetrics[overload1]$$$useDesignMetrics --> <h3 class="fn" id="useDesignMetrics"><a name="useDesignMetrics"></a><span class="type">bool</span> QTextOption::<span class="name">useDesignMetrics</span>() const</h3> <p>Returns <code>true</code> if the layout uses design rather than device metrics; otherwise returns <code>false</code>.</p> <p><b>See also </b><a href="qtextoption.html#setUseDesignMetrics">setUseDesignMetrics</a>().</p> <!-- @@@useDesignMetrics --> <!-- $$$wrapMode[overload1]$$$wrapMode --> <h3 class="fn" id="wrapMode"><a name="wrapMode"></a><span class="type"><a href="qtextoption.html#WrapMode-enum">QTextOption::WrapMode</a></span> QTextOption::<span class="name">wrapMode</span>() const</h3> <p>Returns the text wrap mode defined by the option.</p> <p><b>See also </b><a href="qtextoption.html#setWrapMode">setWrapMode</a>().</p> <!-- @@@wrapMode --> <!-- $$$operator=[overload1]$$$operator=constQTextOption& --> <h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qtextoption.html#QTextOption">QTextOption</a></span> &QTextOption::<span class="name">operator=</span>(const <span class="type"><a href="qtextoption.html#QTextOption">QTextOption</a></span> &<i>other</i>)</h3> <p>Returns <code>true</code> if the text option is the same as the <i>other</i> text option; otherwise returns <code>false</code>.</p> <!-- @@@operator= --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>