?? qlineedit.3qt
字號:
'\" t.TH QLineEdit 3qt "21 January 2005" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQLineEdit \- One-line text editor.SH SYNOPSIS\fC#include <qlineedit.h>\fR.PPInherits QFrame..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQLineEdit\fR ( QWidget * parent, const char * name = 0 )".br.ti -1c.BI "\fBQLineEdit\fR ( const QString & contents, QWidget * parent, const char * name = 0 )".br.ti -1c.BI "\fBQLineEdit\fR ( const QString & contents, const QString & inputMask, QWidget * parent, const char * name = 0 )".br.ti -1c.BI "\fB~QLineEdit\fR ()".br.ti -1c.BI "QString \fBtext\fR () const".br.ti -1c.BI "QString \fBdisplayText\fR () const".br.ti -1c.BI "int \fBmaxLength\fR () const".br.ti -1c.BI "bool \fBframe\fR () const".br.ti -1c.BI "enum \fBEchoMode\fR { Normal, NoEcho, Password }".br.ti -1c.BI "EchoMode \fBechoMode\fR () const".br.ti -1c.BI "bool \fBisReadOnly\fR () const".br.ti -1c.BI "const QValidator * \fBvalidator\fR () const".br.ti -1c.BI "virtual QSize \fBsizeHint\fR () const".br.ti -1c.BI "virtual QSize \fBminimumSizeHint\fR () const".br.ti -1c.BI "int \fBcursorPosition\fR () const".br.ti -1c.BI "bool validateAndSet ( const QString & newText, int newPos, int newMarkAnchor, int newMarkDrag ) \fI(obsolete)\fR".br.ti -1c.BI "int \fBalignment\fR () const".br.ti -1c.BI "void cursorLeft ( bool mark, int steps = 1 ) \fI(obsolete)\fR".br.ti -1c.BI "void cursorRight ( bool mark, int steps = 1 ) \fI(obsolete)\fR".br.ti -1c.BI "void \fBcursorForward\fR ( bool mark, int steps = 1 )".br.ti -1c.BI "void \fBcursorBackward\fR ( bool mark, int steps = 1 )".br.ti -1c.BI "void \fBcursorWordForward\fR ( bool mark )".br.ti -1c.BI "void \fBcursorWordBackward\fR ( bool mark )".br.ti -1c.BI "void \fBbackspace\fR ()".br.ti -1c.BI "void \fBdel\fR ()".br.ti -1c.BI "void \fBhome\fR ( bool mark )".br.ti -1c.BI "void \fBend\fR ( bool mark )".br.ti -1c.BI "bool \fBisModified\fR () const".br.ti -1c.BI "void \fBclearModified\fR ()".br.ti -1c.BI "bool edited () const \fI(obsolete)\fR".br.ti -1c.BI "void setEdited ( bool ) \fI(obsolete)\fR".br.ti -1c.BI "bool \fBhasSelectedText\fR () const".br.ti -1c.BI "QString \fBselectedText\fR () const".br.ti -1c.BI "int \fBselectionStart\fR () const".br.ti -1c.BI "bool \fBisUndoAvailable\fR () const".br.ti -1c.BI "bool \fBisRedoAvailable\fR () const".br.ti -1c.BI "bool hasMarkedText () const \fI(obsolete)\fR".br.ti -1c.BI "QString markedText () const \fI(obsolete)\fR".br.ti -1c.BI "bool \fBdragEnabled\fR () const".br.ti -1c.BI "QString \fBinputMask\fR () const".br.ti -1c.BI "void \fBsetInputMask\fR ( const QString & inputMask )".br.ti -1c.BI "bool \fBhasAcceptableInput\fR () const".br.ti -1c.BI "int characterAt ( int xpos, QChar * chr ) const \fI(obsolete)\fR".br.ti -1c.BI "bool getSelection ( int * start, int * end ) \fI(obsolete)\fR".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "virtual void \fBsetText\fR ( const QString & )".br.ti -1c.BI "virtual void \fBselectAll\fR ()".br.ti -1c.BI "virtual void \fBdeselect\fR ()".br.ti -1c.BI "virtual void \fBclearValidator\fR ()".br.ti -1c.BI "virtual void \fBinsert\fR ( const QString & newText )".br.ti -1c.BI "virtual void \fBclear\fR ()".br.ti -1c.BI "virtual void \fBundo\fR ()".br.ti -1c.BI "virtual void \fBredo\fR ()".br.ti -1c.BI "virtual void \fBsetMaxLength\fR ( int )".br.ti -1c.BI "virtual void \fBsetFrame\fR ( bool )".br.ti -1c.BI "virtual void \fBsetEchoMode\fR ( EchoMode )".br.ti -1c.BI "virtual void \fBsetReadOnly\fR ( bool )".br.ti -1c.BI "virtual void \fBsetValidator\fR ( const QValidator * v )".br.ti -1c.BI "virtual void \fBsetSelection\fR ( int start, int length )".br.ti -1c.BI "virtual void \fBsetCursorPosition\fR ( int )".br.ti -1c.BI "virtual void \fBsetAlignment\fR ( int flag )".br.ti -1c.BI "virtual void \fBcut\fR ()".br.ti -1c.BI "virtual void \fBcopy\fR () const".br.ti -1c.BI "virtual void \fBpaste\fR ()".br.ti -1c.BI "virtual void \fBsetDragEnabled\fR ( bool b )".br.in -1c.SS "Signals".in +1c.ti -1c.BI "void \fBtextChanged\fR ( const QString & )".br.ti -1c.BI "void \fBreturnPressed\fR ()".br.ti -1c.BI "void \fBlostFocus\fR ()".br.ti -1c.BI "void \fBselectionChanged\fR ()".br.in -1c.SS "Properties".in +1c.ti -1c.BI "bool \fBacceptableInput\fR - whether the input satisfies the inputMask and the validator \fI(read " "only" ")\fR".br.ti -1c.BI "Alignment \fBalignment\fR - the alignment of the line edit".br.ti -1c.BI "int \fBcursorPosition\fR - the current cursor position for this line edit".br.ti -1c.BI "QString \fBdisplayText\fR - the displayed text \fI(read " "only" ")\fR".br.ti -1c.BI "bool \fBdragEnabled\fR - whether the lineedit starts a drag if the user presses and moves the mouse on some selected text".br.ti -1c.BI "EchoMode \fBechoMode\fR - the line edit's echo mode".br.ti -1c.BI "bool edited - whether the line edit has been edited. Use modified instead \fI(obsolete)\fR".br.ti -1c.BI "bool \fBframe\fR - whether the line edit draws itself with a frame".br.ti -1c.BI "bool hasMarkedText - whether part of the text has been selected by the user. Use hasSelectedText instead \fI(read " "only" ")\fR \fI(obsolete)\fR".br.ti -1c.BI "bool \fBhasSelectedText\fR - whether there is any text selected \fI(read " "only" ")\fR"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -