以下成员源于类 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 ().