Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Friends

QLineEdit Class Reference

Search for all occurrences

Detailed Description

Definition at line 65 of file qlineedit.h.

#include <qlineedit.h>

Inheritance diagram for QLineEdit:
Inheritance graph
[legend]

List of all members.

Public Types

enum   EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }

Public Slots

void  setText (const QString &)
void  clear ()
void  selectAll ()
void  undo ()
void  redo ()
void  cut ()
void  copy () const
void  paste ()

Signals

void  textChanged (const QString &)
void  textEdited (const QString &)
void  cursorPositionChanged (int, int)
void  returnPressed ()
void  editingFinished ()
void  selectionChanged ()

Public Member Functions

  QLineEdit (QWidget *parent=0)
  QLineEdit (const QString &, QWidget *parent=0)
  ~QLineEdit ()
QString  text () const
QString  displayText () const
QString  placeholderText () const
void  setPlaceholderText (const QString &)
int  maxLength () const
void  setMaxLength (int)
void  setFrame (bool)
bool  hasFrame () const
EchoMode  echoMode () const
void  setEchoMode (EchoMode)
bool  isReadOnly () const
void  setReadOnly (bool)
void  setValidator (const QValidator *)
const QValidator validator () const
void  setCompleter (QCompleter *completer)
QCompleter completer () const
QSize  sizeHint () const
QSize  minimumSizeHint () const
int  cursorPosition () const
void  setCursorPosition (int)
int  cursorPositionAt (const QPoint &pos)
void  setAlignment (Qt::Alignment flag)
Qt::Alignment  alignment () const
void  cursorForward (bool mark, int steps=1)
void  cursorBackward (bool mark, int steps=1)
void  cursorWordForward (bool mark)
void  cursorWordBackward (bool mark)
void  backspace ()
void  del ()
void  home (bool mark)
void  end (bool mark)
bool  isModified () const
void  setModified (bool)
void  setSelection (int, int)
bool  hasSelectedText () const
QString  selectedText () const
int  selectionStart () const
bool  isUndoAvailable () const
bool  isRedoAvailable () const
void  setDragEnabled (bool b)
bool  dragEnabled () const
QString  inputMask () const
void  setInputMask (const QString &inputMask)
bool  hasAcceptableInput () const
void  setTextMargins (int left, int top, int right, int bottom)
void  setTextMargins (const QMargins &margins)
void  getTextMargins (int *left, int *top, int *right, int *bottom) const
QMargins  textMargins () const
void  deselect ()
void  insert (const QString &)
QMenu createStandardContextMenu ()
QVariant  inputMethodQuery (Qt::InputMethodQuery) const
bool  event (QEvent *)

Protected Member Functions

void  mousePressEvent (QMouseEvent *)
void  mouseMoveEvent (QMouseEvent *)
void  mouseReleaseEvent (QMouseEvent *)
void  mouseDoubleClickEvent (QMouseEvent *)
void  keyPressEvent (QKeyEvent *)
void  focusInEvent (QFocusEvent *)
void  focusOutEvent (QFocusEvent *)
void  paintEvent (QPaintEvent *)
void  dragEnterEvent (QDragEnterEvent *)
void  dragMoveEvent (QDragMoveEvent *e)
void  dragLeaveEvent (QDragLeaveEvent *e)
void  dropEvent (QDropEvent *)
void  changeEvent (QEvent *)
void  contextMenuEvent (QContextMenuEvent *)
void  inputMethodEvent (QInputMethodEvent *)
void  initStyleOption (QStyleOptionFrame *option) const
QRect  cursorRect () const

Properties

QString  inputMask
QString  text
int  maxLength
bool  frame
EchoMode  echoMode
QString  displayText
int  cursorPosition
Qt::Alignment  alignment
bool  modified
bool  hasSelectedText
QString  selectedText
bool  dragEnabled
bool  readOnly
bool  undoAvailable
bool  redoAvailable
bool  acceptableInput
QString  placeholderText

Friends

class  QAbstractSpinBox

Member Enumeration Documentation

enum EchoMode

Constructor & Destructor Documentation

QLineEdit ( QWidget parent = 0 ) [explicit]
QLineEdit ( const QString ,
QWidget parent = 0 
) [explicit]
~QLineEdit ( )

Member Function Documentation

QString text ( ) const
QString displayText ( ) const
QString placeholderText ( ) const
void setPlaceholderText ( const QString )
int maxLength ( ) const
void setMaxLength ( int  )
void setFrame ( bool  )
bool hasFrame ( ) const
EchoMode echoMode ( ) const
void setEchoMode ( EchoMode  )
bool isReadOnly ( ) const
void setReadOnly ( bool  )
void setValidator ( const QValidator )
const QValidator* validator ( ) const
void setCompleter ( QCompleter completer )
QCompleter* completer ( ) const
QSize sizeHint ( ) const [virtual]

Reimplemented from QWidget.

QSize minimumSizeHint ( ) const [virtual]

Reimplemented from QWidget.

int cursorPosition ( ) const
void setCursorPosition ( int  )
int cursorPositionAt ( const QPoint pos )
void setAlignment ( Qt::Alignment  flag )
Qt::Alignment alignment ( ) const
void cursorForward ( bool  mark,
int  steps = 1 
)
void cursorBackward ( bool  mark,
int  steps = 1 
)
void cursorWordForward ( bool  mark )
void cursorWordBackward ( bool  mark )
void backspace ( )
void del ( )
void home ( bool  mark )
void end ( bool  mark )
bool isModified ( ) const
void setModified ( bool  )
void setSelection ( int  ,
int   
)
bool hasSelectedText ( ) const
QString selectedText ( ) const
int selectionStart ( ) const
bool isUndoAvailable ( ) const
bool isRedoAvailable ( ) const
void setDragEnabled ( bool  b )
bool dragEnabled ( ) const
QString inputMask ( ) const
void setInputMask ( const QString inputMask )
bool hasAcceptableInput ( ) const
void setTextMargins ( int  left,
int  top,
int  right,
int  bottom 
)
void setTextMargins ( const QMargins margins )
void getTextMargins ( int *  left,
int *  top,
int *  right,
int *  bottom 
) const
QMargins textMargins ( ) const
void setText ( const QString ) [slot]
void clear ( ) [slot]
void selectAll ( ) [slot]
void undo ( ) [slot]
void redo ( ) [slot]
void cut ( ) [slot]
void copy ( ) const [slot]
void paste ( ) [slot]
void deselect ( )
void insert ( const QString )
QMenu* createStandardContextMenu ( )
void textChanged ( const QString ) [signal]
void textEdited ( const QString ) [signal]
void cursorPositionChanged ( int  ,
int   
) [signal]
void returnPressed ( ) [signal]
void editingFinished ( ) [signal]
void selectionChanged ( ) [signal]
void mousePressEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void mouseMoveEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void mouseReleaseEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void mouseDoubleClickEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void keyPressEvent ( QKeyEvent ) [protected, virtual]

Reimplemented from QWidget.

void focusInEvent ( QFocusEvent ) [protected, virtual]

Reimplemented from QWidget.

void focusOutEvent ( QFocusEvent ) [protected, virtual]

Reimplemented from QWidget.

void paintEvent ( QPaintEvent ) [protected, virtual]

Reimplemented from QWidget.

void dragEnterEvent ( QDragEnterEvent ) [protected, virtual]

Reimplemented from QWidget.

void dragMoveEvent ( QDragMoveEvent e ) [protected, virtual]

Reimplemented from QWidget.

void dragLeaveEvent ( QDragLeaveEvent e ) [protected, virtual]

Reimplemented from QWidget.

void dropEvent ( QDropEvent ) [protected, virtual]

Reimplemented from QWidget.

void changeEvent ( QEvent ) [protected, virtual]

Reimplemented from QWidget.

void contextMenuEvent ( QContextMenuEvent ) [protected, virtual]

Reimplemented from QWidget.

void inputMethodEvent ( QInputMethodEvent ) [protected, virtual]

Reimplemented from QWidget.

void initStyleOption ( QStyleOptionFrame option ) const [protected]
QVariant inputMethodQuery ( Qt::InputMethodQuery  ) const [virtual]

Reimplemented from QWidget.

bool event ( QEvent ) [virtual]

Reimplemented from QWidget.

QRect cursorRect ( ) const [protected]

Friends And Related Function Documentation

friend class QAbstractSpinBox [friend]

Definition at line 270 of file qlineedit.h.


Property Documentation

QString inputMask [read, write]

Definition at line 70 of file qlineedit.h.

QString text [read, write]

Definition at line 71 of file qlineedit.h.

int maxLength [read, write]

Definition at line 72 of file qlineedit.h.

bool frame [read, write]

Definition at line 73 of file qlineedit.h.

EchoMode echoMode [read, write]

Definition at line 74 of file qlineedit.h.

QString displayText [read]

Definition at line 75 of file qlineedit.h.

int cursorPosition [read, write]

Definition at line 76 of file qlineedit.h.

Qt::Alignment alignment [read, write]

Definition at line 77 of file qlineedit.h.

bool modified [read, write]

Definition at line 78 of file qlineedit.h.

bool hasSelectedText [read]

Definition at line 79 of file qlineedit.h.

QString selectedText [read]

Definition at line 80 of file qlineedit.h.

bool dragEnabled [read, write]

Definition at line 81 of file qlineedit.h.

bool readOnly [read, write]

Definition at line 82 of file qlineedit.h.

bool undoAvailable [read]

Definition at line 83 of file qlineedit.h.

bool redoAvailable [read]

Definition at line 84 of file qlineedit.h.

bool acceptableInput [read]

Definition at line 85 of file qlineedit.h.

QString placeholderText [read, write]

Definition at line 86 of file qlineedit.h.


The documentation for this class was generated from the following file:

QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit
QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit QLineEdit