1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
<?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" />
<!-- qlineedit.cpp -->
<title>Qt 4.8: Qt 3 Support Members for QLineEdit</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<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>QLineEdit</li>
</ul>
</div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QLineEdit</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qlineedit.html">QLineEdit class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#QLineEdit-3">QLineEdit</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#QLineEdit-4">QLineEdit</a></b> ( const QString & <i>contents</i>, QWidget * <i>parent</i>, const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#QLineEdit-5">QLineEdit</a></b> ( const QString & <i>contents</i>, const QString & <i>inputMask</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#characterAt">characterAt</a></b> ( int <i>xpos</i>, QChar * <i>chr</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#clearModified">clearModified</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#clearValidator">clearValidator</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#cursorLeft">cursorLeft</a></b> ( bool <i>mark</i>, int <i>steps</i> = 1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#cursorRight">cursorRight</a></b> ( bool <i>mark</i>, int <i>steps</i> = 1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#edited">edited</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#frame">frame</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#getSelection">getSelection</a></b> ( int * <i>start</i>, int * <i>end</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#hasMarkedText">hasMarkedText</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#margin">margin</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#markedText">markedText</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#setEdited">setEdited</a></b> ( bool <i>on</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#setMargin">setMargin</a></b> ( int <i>margin</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#validateAndSet">validateAndSet</a></b> ( const QString & <i>newText</i>, int <i>newPos</i>, int <i>newMarkAnchor</i>, int <i>newMarkDrag</i> )</td></tr>
</table>
<ul>
<li class="fn">60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#lostFocus">lostFocus</a></b> ()</td></tr>
</table>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlineedit-qt3.html#repaintArea">repaintArea</a></b> ( int <i>a</i>, int <i>b</i> )</td></tr>
</table>
<ul>
<li class="fn">1 protected function inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h2>Member Function Documentation</h2>
<!-- $$$QLineEdit$$$QLineEditQWidget*constchar* -->
<h3 class="fn"><a name="QLineEdit-3"></a>QLineEdit::<span class="name">QLineEdit</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> )</h3>
<p>Constructs a line edit with no text.</p>
<p>The maximum text length is set to 32767 characters.</p>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p><b>See also </b><a href="qlineedit.html#text-prop">setText</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
<!-- @@@QLineEdit -->
<!-- $$$QLineEdit$$$QLineEditconstQString&QWidget*constchar* -->
<h3 class="fn"><a name="QLineEdit-4"></a>QLineEdit::<span class="name">QLineEdit</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>contents</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i> )</h3>
<p>Constructs a line edit containing the text <i>contents</i>.</p>
<p>The cursor position is set to the end of the line and the maximum text length to 32767 characters.</p>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p><b>See also </b><a href="qlineedit.html#text-prop">text</a>() and <a href="qlineedit.html#maxLength-prop">setMaxLength</a>().</p>
<!-- @@@QLineEdit -->
<!-- $$$QLineEdit$$$QLineEditconstQString&constQString&QWidget*constchar* -->
<h3 class="fn"><a name="QLineEdit-5"></a>QLineEdit::<span class="name">QLineEdit</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>contents</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>inputMask</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a line edit with an input <i>inputMask</i> and the text <i>contents</i>.</p>
<p>The cursor position is set to the end of the line and the maximum text length is set to the length of the mask (the number of mask characters and separators).</p>
<p>The <i>parent</i> and <i>name</i> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p><b>See also </b><a href="qwidget.html#setMask">setMask</a>() and <a href="qlineedit.html#text-prop">text</a>().</p>
<!-- @@@QLineEdit -->
<!-- $$$characterAt[overload1]$$$characterAtintQChar* -->
<h3 class="fn"><a name="characterAt"></a><span class="type">int</span> QLineEdit::<span class="name">characterAt</span> ( <span class="type">int</span> <i>xpos</i>, <span class="type"><a href="qchar.html">QChar</a></span> * <i>chr</i> ) const</h3>
<p>There exists no equivalent functionality in Qt 4.</p>
<!-- @@@characterAt -->
<!-- $$$clearModified[overload1]$$$clearModified -->
<h3 class="fn"><a name="clearModified"></a><span class="type">void</span> QLineEdit::<span class="name">clearModified</span> ()</h3>
<p>Use setModified(false) instead.</p>
<p><b>See also </b><a href="qlineedit.html#modified-prop">isModified</a>().</p>
<!-- @@@clearModified -->
<!-- $$$clearValidator[overload1]$$$clearValidator -->
<h3 class="fn"><a name="clearValidator"></a><span class="type">void</span> QLineEdit::<span class="name">clearValidator</span> ()</h3>
<p>Use setValidator(0) instead.</p>
<!-- @@@clearValidator -->
<!-- $$$cursorLeft[overload1]$$$cursorLeftboolint -->
<h3 class="fn"><a name="cursorLeft"></a><span class="type">void</span> QLineEdit::<span class="name">cursorLeft</span> ( <span class="type">bool</span> <i>mark</i>, <span class="type">int</span> <i>steps</i> = 1 )</h3>
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() with a negative number of steps instead. For example, cursorForward(mark, -steps).</p>
<!-- @@@cursorLeft -->
<!-- $$$cursorRight[overload1]$$$cursorRightboolint -->
<h3 class="fn"><a name="cursorRight"></a><span class="type">void</span> QLineEdit::<span class="name">cursorRight</span> ( <span class="type">bool</span> <i>mark</i>, <span class="type">int</span> <i>steps</i> = 1 )</h3>
<p>Use <a href="qlineedit.html#cursorForward">cursorForward</a>() instead.</p>
<!-- @@@cursorRight -->
<!-- $$$edited[overload1]$$$edited -->
<h3 class="fn"><a name="edited"></a><span class="type">bool</span> QLineEdit::<span class="name">edited</span> () const</h3>
<p>Use <a href="qlineedit.html#modified-prop">isModified</a>() instead.</p>
<p><b>See also </b><a href="qlineedit-qt3.html#setEdited">setEdited</a>().</p>
<!-- @@@edited -->
<!-- $$$frame[overload1]$$$frame -->
<h3 class="fn"><a name="frame"></a><span class="type">bool</span> QLineEdit::<span class="name">frame</span> () const</h3>
<p>Use <a href="qlineedit.html#frame-prop">hasFrame</a>() instead.</p>
<p><b>See also </b><a href="qlineedit.html#frame-prop">setFrame</a>().</p>
<!-- @@@frame -->
<!-- $$$getSelection[overload1]$$$getSelectionint*int* -->
<h3 class="fn"><a name="getSelection"></a><span class="type">bool</span> QLineEdit::<span class="name">getSelection</span> ( <span class="type">int</span> * <i>start</i>, <span class="type">int</span> * <i>end</i> )</h3>
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() and <a href="qlineedit.html#selectionStart">selectionStart</a>() instead.</p>
<!-- @@@getSelection -->
<!-- $$$hasMarkedText[overload1]$$$hasMarkedText -->
<h3 class="fn"><a name="hasMarkedText"></a><span class="type">bool</span> QLineEdit::<span class="name">hasMarkedText</span> () const</h3>
<p>Use <a href="qlineedit.html#hasSelectedText-prop">hasSelectedText</a>() instead.</p>
<!-- @@@hasMarkedText -->
<!-- $$$lostFocus[overload1]$$$lostFocus -->
<h3 class="fn"><a name="lostFocus"></a><span class="type">void</span> QLineEdit::<span class="name">lostFocus</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the line edit has lost focus.</p>
<p>Use <a href="qlineedit.html#editingFinished">editingFinished</a>() instead</p>
<p><b>See also </b><a href="qlineedit.html#editingFinished">editingFinished</a>() and <a href="qlineedit.html#returnPressed">returnPressed</a>().</p>
<!-- @@@lostFocus -->
<!-- $$$margin[overload1]$$$margin -->
<h3 class="fn"><a name="margin"></a><span class="type">int</span> QLineEdit::<span class="name">margin</span> () const</h3>
<p>Returns the width of the margin around the contents of the widget.</p>
<p>Use <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>() instead.</p>
<p><b>See also </b><a href="qlineedit-qt3.html#setMargin">setMargin</a>() and <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>().</p>
<!-- @@@margin -->
<!-- $$$markedText[overload1]$$$markedText -->
<h3 class="fn"><a name="markedText"></a><span class="type"><a href="qstring.html">QString</a></span> QLineEdit::<span class="name">markedText</span> () const</h3>
<p>Use <a href="qlineedit.html#selectedText-prop">selectedText</a>() instead.</p>
<!-- @@@markedText -->
<!-- $$$repaintArea[overload1]$$$repaintAreaintint -->
<h3 class="fn"><a name="repaintArea"></a><span class="type">void</span> QLineEdit::<span class="name">repaintArea</span> ( <span class="type">int</span> <i>a</i>, <span class="type">int</span> <i>b</i> )<tt> [protected]</tt></h3>
<p>Use <a href="qwidget.html#update">update</a>() instead.</p>
<!-- @@@repaintArea -->
<!-- $$$setEdited[overload1]$$$setEditedbool -->
<h3 class="fn"><a name="setEdited"></a><span class="type">void</span> QLineEdit::<span class="name">setEdited</span> ( <span class="type">bool</span> <i>on</i> )</h3>
<p>Use <a href="qlineedit.html#modified-prop">setModified</a>() or <a href="qlineedit.html#text-prop">setText</a>().</p>
<p><b>See also </b><a href="qlineedit-qt3.html#edited">edited</a>().</p>
<!-- @@@setEdited -->
<!-- $$$setMargin[overload1]$$$setMarginint -->
<h3 class="fn"><a name="setMargin"></a><span class="type">void</span> QLineEdit::<span class="name">setMargin</span> ( <span class="type">int</span> <i>margin</i> )</h3>
<p>Sets the width of the margin around the contents of the widget to <i>margin</i>.</p>
<p>Use <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>() instead.</p>
<p><b>See also </b><a href="qlineedit-qt3.html#margin">margin</a>() and <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>().</p>
<!-- @@@setMargin -->
<!-- $$$validateAndSet[overload1]$$$validateAndSetconstQString&intintint -->
<h3 class="fn"><a name="validateAndSet"></a><span class="type">bool</span> QLineEdit::<span class="name">validateAndSet</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>newText</i>, <span class="type">int</span> <i>newPos</i>, <span class="type">int</span> <i>newMarkAnchor</i>, <span class="type">int</span> <i>newMarkDrag</i> )</h3>
<p>Use <a href="qlineedit.html#text-prop">setText</a>(), <a href="qlineedit.html#cursorPosition-prop">setCursorPosition</a>() and <a href="qlineedit.html#setSelection">setSelection</a>() instead.</p>
<!-- @@@validateAndSet -->
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. 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>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
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>
</body>
</html>
|