400 lines
29 KiB
HTML
400 lines
29 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<!-- qtextoption.cpp -->
|
|
<title>Qt 4.8: QTextOption Class Reference</title>
|
|
<link rel="stylesheet" type="text/css" href="style/style.css" />
|
|
<script src="scripts/jquery.js" type="text/javascript"></script>
|
|
<script src="scripts/functions.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="style/superfish.css" />
|
|
<link rel="stylesheet" type="text/css" href="style/narrow.css" />
|
|
<!--[if IE]>
|
|
<meta name="MSSmartTagsPreventParsing" content="true">
|
|
<meta http-equiv="imagetoolbar" content="no">
|
|
<![endif]-->
|
|
<!--[if lt IE 7]>
|
|
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
|
|
<![endif]-->
|
|
<!--[if IE 7]>
|
|
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
|
|
<![endif]-->
|
|
<!--[if IE 8]>
|
|
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
|
|
<![endif]-->
|
|
|
|
<script src="scripts/superfish.js" type="text/javascript"></script>
|
|
<script src="scripts/narrow.js" type="text/javascript"></script>
|
|
|
|
</head>
|
|
<body class="" onload="CheckEmptyAndLoadList();">
|
|
<div class="header" id="qtdocheader">
|
|
<div class="content">
|
|
<div id="nav-logo">
|
|
<a href="index.html">Home</a></div>
|
|
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
|
|
<div id="narrowsearch"></div>
|
|
<div id="nav-topright">
|
|
<ul>
|
|
<li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
|
|
<li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
|
|
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
|
|
DOC</a></li>
|
|
<li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="shortCut">
|
|
<ul>
|
|
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
|
|
<li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li>
|
|
</ul>
|
|
</div>
|
|
<ul class="sf-menu" id="narrowmenu">
|
|
<li><a href="#">API Lookup</a>
|
|
<ul>
|
|
<li><a href="classes.html">Class index</a></li>
|
|
<li><a href="functions.html">Function index</a></li>
|
|
<li><a href="modules.html">Modules</a></li>
|
|
<li><a href="namespaces.html">Namespaces</a></li>
|
|
<li><a href="qtglobal.html">Global Declarations</a></li>
|
|
<li><a href="qdeclarativeelements.html">QML elements</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#">Qt Topics</a>
|
|
<ul>
|
|
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
|
|
<li><a href="qtquick.html">Device UIs & Qt Quick</a></li>
|
|
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
|
|
<li><a href="supported-platforms.html">Supported Platforms</a></li>
|
|
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
|
|
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#">Examples</a>
|
|
<ul>
|
|
<li><a href="all-examples.html">Examples</a></li>
|
|
<li><a href="tutorials.html">Tutorials</a></li>
|
|
<li><a href="demos.html">Demos</a></li>
|
|
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="wrapper">
|
|
<div class="hd">
|
|
<span></span>
|
|
</div>
|
|
<div class="bd group">
|
|
<div class="sidebar">
|
|
<div class="searchlabel">
|
|
Search index:</div>
|
|
<div class="search" id="sidebarsearch">
|
|
<form id="qtdocsearch" action="" onsubmit="return false;">
|
|
<fieldset>
|
|
<input type="text" name="searchstring" id="pageType" value="" />
|
|
<div id="resultdialog">
|
|
<a href="#" id="resultclose">Close</a>
|
|
<p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p>
|
|
<p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p>
|
|
<ul id="resultlist" class="all">
|
|
</ul>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div class="box first bottombar" id="lookup">
|
|
<h2 title="API Lookup"><span></span>
|
|
API Lookup</h2>
|
|
<div id="list001" class="list">
|
|
<ul id="ul001" >
|
|
<li class="defaultLink"><a href="classes.html">Class index</a></li>
|
|
<li class="defaultLink"><a href="functions.html">Function index</a></li>
|
|
<li class="defaultLink"><a href="modules.html">Modules</a></li>
|
|
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
|
|
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
|
|
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="box bottombar" id="topics">
|
|
<h2 title="Qt Topics"><span></span>
|
|
Qt Topics</h2>
|
|
<div id="list002" class="list">
|
|
<ul id="ul002" >
|
|
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
|
|
<li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li>
|
|
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
|
|
<li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>
|
|
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
|
|
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="box" id="examples">
|
|
<h2 title="Examples"><span></span>
|
|
Examples</h2>
|
|
<div id="list003" class="list">
|
|
<ul id="ul003">
|
|
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
|
|
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
|
|
<li class="defaultLink"><a href="demos.html">Demos</a></li>
|
|
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="wrap">
|
|
<div class="toolbar">
|
|
<div class="breadcrumb toolblock">
|
|
<ul>
|
|
<li class="first"><a href="index.html">Home</a></li>
|
|
<!-- Breadcrumbs go here -->
|
|
<li><a href="modules.html">Modules</a></li>
|
|
<li><a href="qtgui.html">QtGui</a></li>
|
|
<li>QTextOption</li>
|
|
</ul>
|
|
</div>
|
|
<div class="toolbuttons toolblock">
|
|
<ul>
|
|
<li id="smallA" class="t_button">A</li>
|
|
<li id="medA" class="t_button active">A</li>
|
|
<li id="bigA" class="t_button">A</li>
|
|
<li id="print" class="t_button"><a href="javascript:this.print();">
|
|
<span>Print</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="content mainContent">
|
|
<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>
|
|
<h1 class="title">QTextOption Class Reference</h1>
|
|
<!-- $$$QTextOption-brief -->
|
|
<p>The QTextOption class provides a description of general rich text properties. <a href="#details">More...</a></p>
|
|
<!-- @@@QTextOption -->
|
|
<pre class="cpp"> <span class="preprocessor">#include <QTextOption></span></pre><p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
|
|
<ul>
|
|
<li><a href="qtextoption-members.html">List of all members, including inherited members</a></li>
|
|
</ul>
|
|
<a name="public-types"></a>
|
|
<h2>Public Types</h2>
|
|
<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, 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>
|
|
<a name="public-functions"></a>
|
|
<h2>Public Functions</h2>
|
|
<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-2">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-3">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"> 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> ( 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> ( QList<qreal> <i>tabStops</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTabStop">setTabStop</a></b> ( qreal <i>tabStop</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextoption.html#setTabs">setTabs</a></b> ( QList<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> ( 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#tabStop">tabStop</a></b> () const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QList<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"> 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>
|
|
<a name="details"></a>
|
|
<!-- $$$QTextOption-description -->
|
|
<div class="descr">
|
|
<h2>Detailed Description</h2>
|
|
<p>The QTextOption class provides a description of general rich text properties.</p>
|
|
<p>QTextOption 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="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$$$IncludeTrailingSpaces -->
|
|
<h3 class="flags"><a name="Flag-enum"></a>enum QTextOption::<span class="name">Flag</span><br/>flags QTextOption::<span class="name">Flags</span></h3>
|
|
<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"><tt>QTextOption::IncludeTrailingSpaces</tt></td><td class="topAlign"><tt>0x80000000</tt></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"><tt>QTextOption::ShowTabsAndSpaces</tt></td><td class="topAlign"><tt>0x1</tt></td><td class="topAlign">Visualize spaces with little dots, and tabs with little arrows.</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::ShowLineAndParagraphSeparators</tt></td><td class="topAlign"><tt>0x2</tt></td><td class="topAlign">Visualize line and paragraph separators with appropriate symbol characters.</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::AddSpaceForLineAndParagraphSeparators</tt></td><td class="topAlign"><tt>0x4</tt></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"><tt>QTextOption::SuppressColors</tt></td><td class="topAlign"><tt>0x8</tt></td><td class="topAlign">Suppress all color changes in the character formats (except the main selection).</td></tr>
|
|
</table>
|
|
<p>The Flags type is a typedef for <a href="qflags.html">QFlags</a><Flag>. It stores an OR combination of Flag values.</p>
|
|
<!-- @@@Flag -->
|
|
<!-- $$$TabType$$$LeftTab$$$RightTab$$$CenterTab$$$DelimiterTab -->
|
|
<h3 class="fn"><a name="TabType-enum"></a>enum QTextOption::<span class="name">TabType</span></h3>
|
|
<p>This enum holds the different types of tabulator</p>
|
|
<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"><tt>QTextOption::LeftTab</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">A left-tab</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::RightTab</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A right-tab</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::CenterTab</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A centered-tab</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::DelimiterTab</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">A tab stopping at a certain delimiter-character</td></tr>
|
|
</table>
|
|
<p>This enum was introduced or modified in Qt 4.4.</p>
|
|
<!-- @@@TabType -->
|
|
<!-- $$$WrapMode$$$NoWrap$$$WordWrap$$$ManualWrap$$$WrapAnywhere$$$WrapAtWordBoundaryOrAnywhere -->
|
|
<h3 class="fn"><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>
|
|
<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"><tt>QTextOption::NoWrap</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Text is not wrapped at all.</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::WordWrap</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Text is wrapped at word boundaries.</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::ManualWrap</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Same as QTextOption::NoWrap</td></tr>
|
|
<tr><td class="topAlign"><tt>QTextOption::WrapAnywhere</tt></td><td class="topAlign"><tt>3</tt></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"><tt>QTextOption::WrapAtWordBoundaryOrAnywhere</tt></td><td class="topAlign"><tt>4</tt></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>
|
|
<!-- @@@WrapMode -->
|
|
</div>
|
|
<div class="func">
|
|
<h2>Member Function Documentation</h2>
|
|
<!-- $$$QTextOption[overload1]$$$QTextOption -->
|
|
<h3 class="fn"><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="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"><a name="QTextOption-2"></a>QTextOption::<span class="name">QTextOption</span> ( <span class="type"><a href="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"><a name="QTextOption-3"></a>QTextOption::<span class="name">QTextOption</span> ( const <span class="type">QTextOption</span> & <i>other</i> )</h3>
|
|
<p>Construct a copy of the <i>other</i> text option.</p>
|
|
<!-- @@@QTextOption -->
|
|
<!-- $$$~QTextOption[overload1]$$$~QTextOption -->
|
|
<h3 class="fn"><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"><a name="alignment"></a><span class="type"><a href="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"><a name="flags"></a><span class="type"><a href="qtextoption.html#Flag-enum">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"><a name="setAlignment"></a><span class="type">void</span> QTextOption::<span class="name">setAlignment</span> ( <span class="type"><a href="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]$$$setFlagsFlags -->
|
|
<h3 class="fn"><a name="setFlags"></a><span class="type">void</span> QTextOption::<span class="name">setFlags</span> ( <span class="type"><a href="qtextoption.html#Flag-enum">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]$$$setTabArrayQList<qreal> -->
|
|
<h3 class="fn"><a name="setTabArray"></a><span class="type">void</span> QTextOption::<span class="name">setTabArray</span> ( <span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="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#setTabStop">setTabStop</a>(), and <a href="qtextoption.html#setTabs">setTabs</a>().</p>
|
|
<!-- @@@setTabArray -->
|
|
<!-- $$$setTabStop[overload1]$$$setTabStopqreal -->
|
|
<h3 class="fn"><a name="setTabStop"></a><span class="type">void</span> QTextOption::<span class="name">setTabStop</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>tabStop</i> )</h3>
|
|
<p>Sets the default distance in device units between tab stops to the value specified by <i>tabStop</i>.</p>
|
|
<p><b>See also </b><a href="qtextoption.html#tabStop">tabStop</a>(), <a href="qtextoption.html#setTabArray">setTabArray</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption.html#tabs">tabs</a>().</p>
|
|
<!-- @@@setTabStop -->
|
|
<!-- $$$setTabs[overload1]$$$setTabsQList<Tab> -->
|
|
<h3 class="fn"><a name="setTabs"></a><span class="type">void</span> QTextOption::<span class="name">setTabs</span> ( <span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qtextoption-tab.html">Tab</a></span>> <i>tabStops</i> )</h3>
|
|
<p>Set the Tab properties to <i>tabStops</i>.</p>
|
|
<p><b>See also </b><a href="qtextoption.html#tabStop">tabStop</a>() and <a href="qtextoption.html#tabs">tabs</a>().</p>
|
|
<!-- @@@setTabs -->
|
|
<!-- $$$setTextDirection[overload1]$$$setTextDirectionQt::LayoutDirection -->
|
|
<h3 class="fn"><a name="setTextDirection"></a><span class="type">void</span> QTextOption::<span class="name">setTextDirection</span> ( <span class="type"><a href="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"><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]$$$setWrapModeWrapMode -->
|
|
<h3 class="fn"><a name="setWrapMode"></a><span class="type">void</span> QTextOption::<span class="name">setWrapMode</span> ( <span class="type"><a href="qtextoption.html#WrapMode-enum">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"><a name="tabArray"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="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.html#tabStop">tabStop</a>().</p>
|
|
<!-- @@@tabArray -->
|
|
<!-- $$$tabStop[overload1]$$$tabStop -->
|
|
<h3 class="fn"><a name="tabStop"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTextOption::<span class="name">tabStop</span> () const</h3>
|
|
<p>Returns the distance in device units between tab stops. Convenient function for the above method</p>
|
|
<p><b>See also </b><a href="qtextoption.html#setTabStop">setTabStop</a>(), <a href="qtextoption.html#tabArray">tabArray</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption.html#tabs">tabs</a>().</p>
|
|
<!-- @@@tabStop -->
|
|
<!-- $$$tabs[overload1]$$$tabs -->
|
|
<h3 class="fn"><a name="tabs"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qtextoption-tab.html">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#tabStop">tabStop</a>(), <a href="qtextoption.html#setTabs">setTabs</a>(), and <a href="qtextoption.html#setTabStop">setTabStop</a>().</p>
|
|
<!-- @@@tabs -->
|
|
<!-- $$$textDirection[overload1]$$$textDirection -->
|
|
<h3 class="fn"><a name="textDirection"></a><span class="type"><a href="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"><a name="useDesignMetrics"></a><span class="type">bool</span> QTextOption::<span class="name">useDesignMetrics</span> () const</h3>
|
|
<p>Returns true if the layout uses design rather than device metrics; otherwise returns false.</p>
|
|
<p><b>See also </b><a href="qtextoption.html#setUseDesignMetrics">setUseDesignMetrics</a>().</p>
|
|
<!-- @@@useDesignMetrics -->
|
|
<!-- $$$wrapMode[overload1]$$$wrapMode -->
|
|
<h3 class="fn"><a name="wrapMode"></a><span class="type"><a href="qtextoption.html#WrapMode-enum">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"><a name="operator-eq"></a><span class="type">QTextOption</span> & QTextOption::<span class="name">operator=</span> ( const <span class="type">QTextOption</span> & <i>other</i> )</h3>
|
|
<p>Returns true if the text option is the same as the <i>other</i> text option; otherwise returns false.</p>
|
|
<!-- @@@operator= -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ft">
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<p>
|
|
<acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd.
|
|
Documentation contributions included herein are the copyrights of
|
|
their respective owners.</p>
|
|
<br />
|
|
<p>
|
|
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.</p>
|
|
<p>
|
|
Documentation sources may be obtained from <a href="http://www.qt-project.org">
|
|
www.qt-project.org</a>.</p>
|
|
<br />
|
|
<p>
|
|
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. <a title="Privacy Policy"
|
|
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
|
|
</div>
|
|
|
|
<script src="scripts/functions.js" type="text/javascript"></script>
|
|
</body>
|
|
</html>
|