⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qtmultilineedit.html

📁 QT 下载资料仅供参考
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<h3 class=fn>bool <a name="isReadOnly"></a>QtMultiLineEdit::isReadOnly () const</h3><p>Returns TRUE if the multi-line edit is read-only; otherwise returns FALSE.See the <a href="qtmultilineedit.html#readOnly-prop">"readOnly"</a> property for details.<h3 class=fn>bool <a name="isUndoEnabled"></a>QtMultiLineEdit::isUndoEnabled () const</h3><p>Returns TRUE if undo is enabled; otherwise returns FALSE.See the <a href="qtmultilineedit.html#undoEnabled-prop">"undoEnabled"</a> property for details.<h3 class=fn>void <a name="keyPressEvent"></a>QtMultiLineEdit::keyPressEvent ( <a href="qkeyevent.html">QKeyEvent</a>&nbsp;*&nbsp;e )<tt> [virtual protected]</tt></h3>The key press event handler converts a key press in event <em>e</em> tosome line editor action.<p> Here are the default key bindings when <a href="#isReadOnly">isReadOnly</a>() is FALSE:<ul><li> <i> Left Arrow </i> Move the cursor one character leftwards<li> <i> Right Arrow </i> Move the cursor one character rightwards<li> <i> Up Arrow </i> Move the cursor one line upwards<li> <i> Down Arrow </i> Move the cursor one line downwards<li> <i> Page Up </i> Move the cursor one page upwards<li> <i> Page Down </i> Move the cursor one page downwards<li> <i> Backspace </i> Delete the character to the left of the cursor<li> <i> Home </i> Move the cursor to the beginning of the line<li> <i> End </i> Move the cursor to the end of the line<li> <i> Delete </i> Delete the character to the right of the cursor<li> <i> Shift - Left Arrow </i> Mark text one character leftwards<li> <i> Shift - Right Arrow </i> Mark text one character rightwards<li> <i> Control-A </i> Move the cursor to the beginning of the line<li> <i> Control-B </i> Move the cursor one character leftwards<li> <i> Control-C </i> Copy the marked text to the clipboard<li> <i> Control-D </i> Delete the character to the right of the cursor<li> <i> Control-E </i> Move the cursor to the end of the line<li> <i> Control-F </i> Move the cursor one character rightwards<li> <i> Control-H </i> Delete the character to the left of the cursor<li> <i> Control-K </i> Delete to end of line<li> <i> Control-N </i> Move the cursor one line downwards<li> <i> Control-P </i> Move the cursor one line upwards<li> <i> Control-V </i> Paste the clipboard text into line edit<li> <i> Control-X </i> Cut the marked text, copy to clipboard<li> <i> Control-Z </i> Undo the last operation<li> <i> Control-Y </i> Redo the last operation<li> <i> Control - Left Arrow </i> Move the cursor one word leftwards<li> <i> Control - Right Arrow </i> Move the cursor one word rightwards<li> <i> Control - Up Arrow </i> Move the cursor one word upwards<li> <i> Control - Down Arrow </i> Move the cursor one word downwards<li> <i> Control - Home Arrow </i> Move the cursor to the beginning of the text<li> <i> Control - End Arrow </i> Move the cursor to the end of the text</ul>In addition, the following key bindings are used on Windows:<ul><li> <i> Shift - Delete </i> Cut the marked text, copy to clipboard<li> <i> Shift - Insert </i> Paste the clipboard text into line edit<li> <i> Control - Insert </i> Copy the marked text to the clipboard</ul>All other keys with valid ASCII codes insert themselves into the line.<p> Here are the default key bindings when <a href="#isReadOnly">isReadOnly</a>() is TRUE:<ul><li> <i> Left Arrow </i> Scrolls the table rightwards<li> <i> Right Arrow </i> Scrolls the table rightwards<li> <i> Up Arrow </i> Scrolls the table one line downwards<li> <i> Down Arrow </i> Scrolls the table one line upwards<li> <i> Page Up </i> Scrolls the table one page downwards<li> <i> Page Down </i> Scrolls the table one page upwards<li> <i> Control-C </i> Copy the marked text to the clipboard</ul><p> <p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget</a>.<h3 class=fn>void <a name="killLine"></a>QtMultiLineEdit::killLine ()<tt> [virtual protected]</tt></h3>Deletes text from the current cursor position to the end of the line.<h3 class=fn>int <a name="length"></a>QtMultiLineEdit::length () const</h3><p>Returns the length of the text.See the <a href="qtmultilineedit.html#length-prop">"length"</a> property for details.<h3 class=fn>int <a name="lineLength"></a>QtMultiLineEdit::lineLength ( int&nbsp;line ) const<tt> [protected]</tt></h3>Returns the number of characters at line number <em>line</em>.<h3 class=fn><a href="qstring.html">QString</a> <a name="markedText"></a>QtMultiLineEdit::markedText () const<tt> [protected]</tt></h3>Returns a copy of the marked text.<h3 class=fn>int <a name="maxLength"></a>QtMultiLineEdit::maxLength () const</h3><p>Returns the maximum length of the text.See the <a href="qtmultilineedit.html#maxLength-prop">"maxLength"</a> property for details.<h3 class=fn>int <a name="maxLineLength"></a>QtMultiLineEdit::maxLineLength () const</h3>Returns the currently set line length limit, or -1 if there isno limit (this is the default).<p> <p>See also <a href="#setMaxLineLength">setMaxLineLength</a>().<h3 class=fn>int <a name="maxLineWidth"></a>QtMultiLineEdit::maxLineWidth () const</h3><p>Returns the maximum line width in pixels Returns the width in pixels of the longest text line in this editor.See the <a href="qtmultilineedit.html#maxLineWidth-prop">"maxLineWidth"</a> property for details.<h3 class=fn>int <a name="maxLines"></a>QtMultiLineEdit::maxLines () const</h3><p>Returns the maximum number of lines The currently set line limit, or -1 if there is no limit (the default).See the <a href="qtmultilineedit.html#maxLines-prop">"maxLines"</a> property for details.<h3 class=fn><a href="qsize.html">QSize</a> <a name="minimumSizeHint"></a>QtMultiLineEdit::minimumSizeHint () const<tt> [virtual]</tt></h3>Returns a size sufficient for one character, and scroll bars.<p>Reimplemented from <a href="qwidget.html#minimumSizeHint">QWidget</a>.<h3 class=fn>void <a name="newLine"></a>QtMultiLineEdit::newLine ()<tt> [virtual protected]</tt></h3>Makes a line break at the current cursor position.<h3 class=fn>int <a name="numLines"></a>QtMultiLineEdit::numLines () const</h3><p>Returns the number of lines in the multi-line edit.See the <a href="qtmultilineedit.html#numLines-prop">"numLines"</a> property for details.<h3 class=fn>void <a name="pageDown"></a>QtMultiLineEdit::pageDown ( bool&nbsp;mark = FALSE )<tt> [virtual protected]</tt></h3>Moves the cursor one page down.  If <em>mark</em> is TRUE, the textis marked.<h3 class=fn>void <a name="pageUp"></a>QtMultiLineEdit::pageUp ( bool&nbsp;mark = FALSE )<tt> [virtual protected]</tt></h3>Moves the cursor one page up.  If <em>mark</em> is TRUE, the textis marked.<h3 class=fn>void <a name="paintCell"></a>QtMultiLineEdit::paintCell ( <a href="qpainter.html">QPainter</a>&nbsp;*&nbsp;painter, int&nbsp;row, int&nbsp;col )<tt> [virtual protected]</tt></h3>Implements the basic drawing logic. Paints the line at row <em>row</em>using painter <em>painter</em>. The <em>col</em> parameter is ignored.<p>Reimplemented from <a href="qttableview.html#paintCell">QtTableView</a>.<h3 class=fn>void <a name="paste"></a>QtMultiLineEdit::paste ()<tt> [slot]</tt></h3>Copies plain text from the clipboard onto the current cursor position.Any marked text is first deleted.<h3 class=fn>void <a name="pasteSubType"></a>QtMultiLineEdit::pasteSubType ( const&nbsp;<a href="qcstring.html">QCString</a>&nbsp;&amp;&nbsp;subtype )<tt> [slot]</tt></h3>Copies text in MIME subtype <em>subtype</em> from the clipboard onto the currentcursor position.Any marked text is first deleted.<h3 class=fn>void <a name="redo"></a>QtMultiLineEdit::redo ()<tt> [slot]</tt></h3>Redoes the last text operation.<h3 class=fn>void <a name="redoAvailable"></a>QtMultiLineEdit::redoAvailable ( bool&nbsp;yes )<tt> [signal]</tt></h3><p> This signal is emitted when the availability of redo changes.If <em>yes</em> is TRUE, then <a href="#redo">redo</a>() will work until<a href="#redoAvailable">redoAvailable</a>( FALSE ) is next emitted.<h3 class=fn>void <a name="removeLine"></a>QtMultiLineEdit::removeLine ( int&nbsp;line )<tt> [virtual]</tt></h3>Deletes the line at line number <em>line</em>. If <em>line</em> is less than zero, or larger than the number of lines,no line is deleted.<h3 class=fn>void <a name="returnPressed"></a>QtMultiLineEdit::returnPressed ()<tt> [signal]</tt></h3> <p> This signal is emitted when the user presses the return or enterkey. It is not emitted if <a href="#isReadOnly">isReadOnly</a>() is TRUE.<p> <p>See also <a href="#textChanged">textChanged</a>().<h3 class=fn>void <a name="selectAll"></a>QtMultiLineEdit::selectAll ()<tt> [slot]</tt></h3>Selects all text without moving the cursor.<h3 class=fn>void <a name="setAlignment"></a>QtMultiLineEdit::setAlignment ( int&nbsp;flags )</h3><p>Sets the alignment to <em>flags</em>.See the <a href="qtmultilineedit.html#alignment-prop">"alignment"</a> property for details.<h3 class=fn>void <a name="setAutoUpdate"></a>QtMultiLineEdit::setAutoUpdate ( bool )<tt> [virtual]</tt></h3><p>Sets whether auto update is enabled.See the <a href="qtmultilineedit.html#autoUpdate-prop">"autoUpdate"</a> property for details.<p>Reimplemented from <a href="qttableview.html#setAutoUpdate">QtTableView</a>.<h3 class=fn>void <a name="setCursorPosition"></a>QtMultiLineEdit::setCursorPosition ( int&nbsp;line, int&nbsp;col, bool&nbsp;mark = FALSE )<tt> [virtual]</tt></h3>Sets the cursor position to character number <em>col</em> in line number <em>line</em>.The parameters are adjusted to lie within the legal range.<p> If <em>mark</em> is FALSE, the selection is cleared. otherwise it is extended<p> <p>See also <a href="#cursorPosition">cursorPosition</a>().<h3 class=fn>void <a name="setDefaultTabStop"></a>QtMultiLineEdit::setDefaultTabStop ( int&nbsp;ex )<tt> [static]</tt></h3>Sets the distance between tab stops for all QtMultiLineEdit instancesto <em>ex</em>, which is measured in multiples of the width of a lower case 'x'in the widget's font. The initial value is 8.<p> <b>Warning:</b> This function does not cause a redraw. It is best to callit before any QtMultiLineEdit widgets are shown.<p> <p>See also <a href="#defaultTabStop">defaultTabStop</a>().<h3 class=fn>void <a name="setEchoMode"></a>QtMultiLineEdit::setEchoMode ( <a href="qtmultilineedit.html#EchoMode-enum">EchoMode</a> )<tt> [virtual]</tt></h3><p>Sets the echo mode.See the <a href="qtmultilineedit.html#echoMode-prop">"echoMode"</a> property for details.<h3 class=fn>void <a name="setEdited"></a>QtMultiLineEdit::setEdited ( bool )</h3><p>Sets whether the text had been edited.See the <a href="qtmultilineedit.html#edited-prop">"edited"</a> property for details.<h3 class=fn>void <a name="setFixedVisibleLines"></a>QtMultiLineEdit::setFixedVisibleLines ( int&nbsp;lines )<tt> [virtual]</tt></h3>Sets the fixed height of the QtMultiLineEdit so that <em>lines</em> text linesare visible given the current font.<p> <p>See also <a href="#maxLines-prop">maxLines</a> and <a href="qwidget.html#setFixedHeight">setFixedHeight</a>().<h3 class=fn>void <a name="setHMargin"></a>QtMultiLineEdit::setHMargin ( int )<tt> [virtual]</tt></h3><p>Sets the horizontal margin The horizontal margin current set. The default is 3.See the <a href="qtmultilineedit.html#hMargin-prop">"hMargin"</a> property for details.<h3 class=fn>void <a name="setMaxLength"></a>QtMultiLineEdit::setMaxLength ( int )</h3><p>Sets the maximum length of the text.See the <a href="qtmultilineedit.html#maxLength-prop">"maxLength"</a> property for details.<h3 class=fn>void <a name="setMaxLineLength"></a>QtMultiLineEdit::setMaxLineLength ( int&nbsp;m )<tt> [virtual]</tt></h3>Sets the maximum length of lines to <em>m</em>.  Use -1 for unlimited(the default).  Existing long lines will be truncated.<p> <p>See also <a href="#maxLineLength">maxLineLength</a>().<h3 class=fn>void <a name="setMaxLines"></a>QtMultiLineEdit::setMaxLines ( int )<tt> [virtual]</tt></h3><p>Sets the maximum number of lines The currently set line limit, or -1 if there is no limit (the default).See the <a href="qtmultilineedit.html#maxLines-prop">"maxLines"</a> property for details.<h3 class=fn>void <a name="setOverwriteMode"></a>QtMultiLineEdit::setOverwriteMode ( bool )<tt> [virtual slot]</tt></h3><p>Sets the overwrite mode.See the <a href="qtmultilineedit.html#overWriteMode-prop">"overWriteMode"</a> property for details.<h3 class=fn>void <a name="setReadOnly"></a>QtMultiLineEdit::setReadOnly ( bool )<tt> [virtual slot]</tt></h3><p>Sets whether the multi-line edit is read-only.See the <a href="qtmultilineedit.html#readOnly-prop">"readOnly"</a> property for details.<h3 class=fn>void <a name="setSelection"></a>QtMultiLineEdit::setSelection ( int&nbsp;row_from, int&nbsp;col_from, int&nbsp;row_to, int&nbsp;col_to )<tt> [virtual]</tt></h3>Marks the text starting at <em>row_from</em>, <em>col_from</em> and endingat <em>row_to</em>, <em>col_to</em>.<h3 class=fn>void <a name="setText"></a>QtMultiLineEdit::setText ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; )<tt> [virtual slot]</tt></h3><p>Sets the multi-line edit's text.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -