本系列文章长期更新修改.
QLineEdit,最基础的单行输入框.
属性:
Types
- enum EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, QString, QWidget parent = None)
- Qt.Alignment alignment (self)
- backspace (self)
- changeEvent (self, QEvent)
- clear (self)
- QCompleter completer (self)
- contextMenuEvent (self, QContextMenuEvent)
- copy (self)
- QMenu createStandardContextMenu (self)
- cursorBackward (self, bool mark, int steps = 1)
- cursorForward (self, bool mark, int steps = 1)
- int cursorPosition (self)
- int cursorPositionAt (self, QPoint pos)
- QRect cursorRect (self)
- cursorWordBackward (self, bool mark)
- cursorWordForward (self, bool mark)
- cut (self)
- del_ (self)
- deselect (self)
- QString displayText (self)
- bool dragEnabled (self)
- dragEnterEvent (self, QDragEnterEvent)
- dragLeaveEvent (self, QDragLeaveEvent e)
- dragMoveEvent (self, QDragMoveEvent e)
- dropEvent (self, QDropEvent)
- EchoMode echoMode (self)
- end (self, bool mark)
- bool event (self, QEvent)
- focusInEvent (self, QFocusEvent)
- focusOutEvent (self, QFocusEvent)
- bool hasAcceptableInput (self)
- bool hasFrame (self)
- bool hasSe