1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<title>Qt 4.7: ExtraSelection Class Reference</title>
8
<link rel="stylesheet" type="text/css" href="style/style.css" />
9
<script src="scripts/jquery.js" type="text/javascript"></script>
10
<script src="scripts/functions.js" type="text/javascript"></script>
12
<body class="offline narrow creator">
13
<div class="header" id="qtdocheader">
16
<a href="index.html">Home</a></div>
17
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
18
<div id="nav-topright">
20
<li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
21
<li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
22
<li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
23
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
25
<li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
30
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
31
<li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS </a></li>
34
<ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu">
35
<li><a href="#">API Lookup</a>
37
<li><a href="classes.html">Class index</a></li>
38
<li><a href="functions.html">Function index</a></li>
39
<li><a href="modules.html">Modules</a></li>
40
<li><a href="namespaces.html">Namespaces</a></li>
41
<li><a href="qtglobal.html">Global Declarations</a></li>
42
<li><a href="licensing.html">Licenses and Credits</a></li>
45
<li><a href="#">Qt Topics</a>
46
<ul id="topmenuTopic">
47
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
48
<li><a href="qtquick.html">Device UI's & Qt Quick</a></li>
49
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
50
<li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
51
<li><a href="platform-specific.html">Platform-specific info</a></li>
52
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
53
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
56
<li><a href="#">Examples</a>
57
<ul id="topmenuexample">
58
<li><a href="all-examples.html">Examples</a></li>
59
<li><a href="tutorials.html">Tutorials</a></li>
60
<li><a href="demos.html">Demos</a></li>
61
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
71
<div class="bd group">
73
<div class="searchlabel">
76
<form id="qtdocsearch" action="" onsubmit="return false;">
78
<input type="text" name="searchstring" id="pageType" value="" />
82
<div class="box first bottombar" id="lookup">
83
<h2 title="API Lookup"><span></span>
85
<div id="list001" class="list">
87
<li class="defaultLink"><a href="classes.html">Class index</a></li>
88
<li class="defaultLink"><a href="functions.html">Function index</a></li>
89
<li class="defaultLink"><a href="modules.html">Modules</a></li>
90
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
91
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
92
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
96
<div class="box bottombar" id="topics">
97
<h2 title="Qt Topics"><span></span>
99
<div id="list002" class="list">
101
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
102
<li class="defaultLink"><a href="qtquick.html">Device UI's & Qt Quick</a></li>
103
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
104
<li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
105
<li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li>
106
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
107
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
111
<div class="box" id="examples">
112
<h2 title="Examples"><span></span>
114
<div id="list003" class="list">
116
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
117
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
118
<li class="defaultLink"><a href="demos.html">Demos</a></li>
119
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
125
<div class="toolbar">
126
<div class="breadcrumb toolblock">
128
<li class="first"><a href="index.html">Home</a></li>
129
<!-- Bread crumbs goes here -->
130
<li><a href="modules.html">Modules</a></li> <li><a href="qtgui.html">QtGui</a></li>
131
<li>ExtraSelection</li>
134
<div class="toolbuttons toolblock">
136
<li id="smallA" class="t_button">A</li>
137
<li id="medA" class="t_button active">A</li>
138
<li id="bigA" class="t_button">A</li>
139
<li id="print" class="t_button"><a href="javascript:this.print();">
140
<span>Print</span></a></li>
144
<div class="content">
146
<h3><a name="toc">Contents</a></h3>
148
<li class="level1"><a href="#public-variables">Public Variables</a></li>
149
<li class="level1"><a href="#details">Detailed Description</a></li>
152
<h1 class="title">ExtraSelection Class Reference</h1>
153
<span class="small-subtitle">(QTextEdit::ExtraSelection)<br/></span>
154
<!-- $$$ExtraSelection-brief -->
155
<p>The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document <a href="#details">More...</a></p>
156
<!-- @@@ExtraSelection -->
157
<pre class="highlightedCode brush: cpp"> #include <<a href="qtextedit.html">QTextEdit</a>></pre><p>This class was introduced in Qt 4.2.</p>
159
<li><a href="qtextedit-extraselection-members.html">List of all members, including inherited members</a></li>
161
<a name="public-variables"></a>
162
<h2>Public Variables</h2>
163
<table class="alignedsummary">
164
<tr><td class="memItemLeft rightAlign topAlign"> QTextCursor </td><td class="memItemRight bottomAlign"><b><a href="qtextedit-extraselection.html#cursor-var">cursor</a></b></td></tr>
165
<tr><td class="memItemLeft rightAlign topAlign"> QTextCharFormat </td><td class="memItemRight bottomAlign"><b><a href="qtextedit-extraselection.html#format-var">format</a></b></td></tr>
167
<a name="details"></a>
168
<!-- $$$ExtraSelection-description -->
170
<h2>Detailed Description</h2>
171
<p>The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document</p>
173
<!-- @@@ExtraSelection -->
175
<h2>Member Variable Documentation</h2>
177
<h3 class="fn"><a name="cursor-var"></a><a href="qtextcursor.html">QTextCursor</a> ExtraSelection::cursor</h3>
178
<p>A cursor that contains a selection in a <a href="qtextdocument.html">QTextDocument</a></p>
181
<h3 class="fn"><a name="format-var"></a><a href="qtextcharformat.html">QTextCharFormat</a> ExtraSelection::format</h3>
182
<p>A format that is used to specify a foreground or background brush/color for the selection.</p>
185
<div class="feedback t_button">
186
[+] Documentation Feedback</div>
196
<acronym title="Copyright">©</acronym> 2008-2010 Nokia Corporation and/or its
197
subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation
198
in Finland and/or other countries worldwide.</p>
200
All other trademarks are property of their respective owners. <a title="Privacy Policy"
201
href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
204
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.</p>
206
Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
207
Free Documentation License version 1.3</a>
208
as published by the Free Software Foundation.</p>
210
<div id="feedbackBox">
211
<div id="feedcloseX" class="feedclose t_button">X</div>
212
<form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
213
<p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and
214
requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
215
<p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
216
<p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>