以下成員源於類 QLineEdit are part of the Qt compatibility layer. We advise against using them in new code.
| QLineEdit (QWidget * parent , const char * name ) | |
| QLineEdit (const QString & contents , QWidget * parent , const char * name ) | |
| QLineEdit (const QString & contents , const QString & inputMask , QWidget * parent = 0, const char * name = 0) | |
| int | characterAt (int xpos , QChar * chr ) const |
| void | clearModified () |
| void | clearValidator () |
| void | cursorLeft (bool mark , int steps = 1) |
| void | cursorRight (bool mark , int steps = 1) |
| bool | edited () const |
| bool | frame () const |
| bool | getSelection (int * start , int * end ) |
| bool | hasMarkedText () const |
| int | margin () const |
| QString | markedText () const |
| void | setEdited (bool on ) |
| void | setMargin (int margin ) |
| void | lostFocus () |
| void | repaintArea (int a , int b ) |
構造行編輯不采用文本。
最大文本長度被設為 32767 個字符。
The parent and name arguments are sent to the QWidget 構造函數。
另請參閱 setText () 和 setMaxLength ().
構造行編輯包含文本 contents .
光標位置被設為行尾,且最大文本長度被設為 32767 個字符。
The parent and name arguments are sent to the QWidget 構造函數。
另請參閱 text () 和 setMaxLength ().
Constructs a line edit with an input inputMask 和文本 contents .
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).
The parent and name arguments are sent to the QWidget 構造函數。
There exists no equivalent functionality in Qt 4.
使用 setModified (false) instead.
另請參閱 isModified ().
使用 setValidator (0) instead.
使用 cursorForward () with a negative number of steps instead. For example, cursorForward (mark, -steps).
使用 cursorForward () 代替。
使用 isModified () 代替。
另請參閱 setEdited ().
使用 hasFrame () 代替。
另請參閱 setFrame ().
使用 selectedText () 和 selectionStart () 代替。
使用 hasSelectedText () 代替。
[signal]
void
QLineEdit::
lostFocus
()
This signal is emitted when the line edit has lost focus.
使用 editingFinished () 代替
另請參閱 editingFinished () 和 returnPressed ().
Returns the width of the margin around the contents of the widget.
使用 QWidget::getContentsMargins () 代替。
另請參閱 setMargin () 和 QWidget::getContentsMargins ().
使用 selectedText () 代替。
[protected]
void
QLineEdit::
repaintArea
(
int
a
,
int
b
)
使用 update () 代替。
使用 setModified () 或 setText ().
另請參閱 edited ().
Sets the width of the margin around the contents of the widget to margin .
使用 QWidget::setContentsMargins () 代替。
另請參閱 margin () 和 QWidget::setContentsMargins ().