KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QLineEdit

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QLineEdit

Class hierarchy: QLineEdit » QWidget » QObject

Sub-classes: EchoMode, QFlags_EchoMode

Public constructors

new QLineEditnew(QWidget ptr parent = 0)Constructor QLineEdit::QLineEdit(QWidget *parent)
new QLineEditnew(string arg1,
QWidget ptr parent = 0)
Constructor QLineEdit::QLineEdit(const QString &, QWidget *parent)

Public methods

[const]QLineEdit ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]boolacceptableInputMethod bool QLineEdit::hasAcceptableInput()
[const]Qt_QFlags_AlignmentFlagalignmentMethod QFlags<Qt::AlignmentFlag> QLineEdit::alignment()
voidalignment=(Qt_QFlags_AlignmentFlag flag)Method void QLineEdit::setAlignment(QFlags<Qt::AlignmentFlag> flag)
voidbackspaceMethod void QLineEdit::backspace()
voidclearMethod void QLineEdit::clear()
[const]QCompleter ptrcompleterMethod QCompleter *QLineEdit::completer()
voidcompleter=(QCompleter ptr completer)Method void QLineEdit::setCompleter(QCompleter *completer)
[const]voidcopyMethod void QLineEdit::copy()
QMenu ptrcreateStandardContextMenuMethod QMenu *QLineEdit::createStandardContextMenu()
voidcursorBackward(bool mark,
int steps = 1)
Method void QLineEdit::cursorBackward(bool mark, int steps)
voidcursorForward(bool mark,
int steps = 1)
Method void QLineEdit::cursorForward(bool mark, int steps)
[const]intcursorPositionMethod int QLineEdit::cursorPosition()
voidcursorPosition=(int arg1)Method void QLineEdit::setCursorPosition(int)
intcursorPositionAt(const QPoint pos)Method int QLineEdit::cursorPositionAt(const QPoint &pos)
[signal]voidcursorPositionChanged(int arg1,
int arg2)
Signal declaration for QLineEdit::cursorPositionChanged(int, int)
voidcursorWordBackward(bool mark)Method void QLineEdit::cursorWordBackward(bool mark)
voidcursorWordForward(bool mark)Method void QLineEdit::cursorWordForward(bool mark)
[signal]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QLineEdit::customContextMenuRequested(const QPoint &pos)
voidcutMethod void QLineEdit::cut()
voiddelMethod void QLineEdit::del()
voiddeselectMethod void QLineEdit::deselect()
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QLineEdit::destroyed(QObject *)
[const]stringdisplayTextMethod QString QLineEdit::displayText()
[const]booldragEnabledMethod bool QLineEdit::dragEnabled()
voiddragEnabled=(bool b)Method void QLineEdit::setDragEnabled(bool b)
[const]QLineEdit_EchoModeechoModeMethod QLineEdit::EchoMode QLineEdit::echoMode()
voidechoMode=(const QLineEdit_EchoMode arg1)Method void QLineEdit::setEchoMode(QLineEdit::EchoMode)
[signal]voideditingFinishedSignal declaration for QLineEdit::editingFinished()
voidemit_cursorPositionChanged(int arg1,
int arg2)
Emitter for signal void QLineEdit::cursorPositionChanged(int, int)
voidemit_customContextMenuRequested(const QPoint pos)Emitter for signal void QLineEdit::customContextMenuRequested(const QPoint &pos)
voidemit_destroyed(QObject ptr arg1 = 0)Emitter for signal void QLineEdit::destroyed(QObject *)
voidemit_editingFinishedEmitter for signal void QLineEdit::editingFinished()
voidemit_returnPressedEmitter for signal void QLineEdit::returnPressed()
voidemit_selectionChangedEmitter for signal void QLineEdit::selectionChanged()
voidemit_textChanged(string arg1)Emitter for signal void QLineEdit::textChanged(const QString &)
voidemit_textEdited(string arg1)Emitter for signal void QLineEdit::textEdited(const QString &)
voidend(bool mark)Method void QLineEdit::end(bool mark)
boolevent(QEvent ptr arg1)Virtual method bool QLineEdit::event(QEvent *)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QLineEdit::eventFilter(QObject *, QEvent *)
[const]boolframeMethod bool QLineEdit::hasFrame()
voidframe=(bool arg1)Method void QLineEdit::setFrame(bool)
[const]voidgetTextMargins(int ptr left,
int ptr top,
int ptr right,
int ptr bottom)
Method void QLineEdit::getTextMargins(int *left, int *top, int *right, int *bottom)
[const]boolhasAcceptableInputMethod bool QLineEdit::hasAcceptableInput()
[const]boolhasFrameMethod bool QLineEdit::hasFrame()
[const]boolhasSelectedTextMethod bool QLineEdit::hasSelectedText()
[const]intheightForWidth(int arg1)Virtual method int QLineEdit::heightForWidth(int)
voidhome(bool mark)Method void QLineEdit::home(bool mark)
[const]stringinputMaskMethod QString QLineEdit::inputMask()
voidinputMask=(string inputMask)Method void QLineEdit::setInputMask(const QString &inputMask)
[const]variantinputMethodQuery(const Qt_InputMethodQuery arg1)Virtual method QVariant QLineEdit::inputMethodQuery(Qt::InputMethodQuery)
voidinsert(string arg1)Method void QLineEdit::insert(const QString &)
[const]boolisModified?Method bool QLineEdit::isModified()
[const]boolisReadOnly?Method bool QLineEdit::isReadOnly()
[const]boolisRedoAvailable?Method bool QLineEdit::isRedoAvailable()
[const]boolisUndoAvailable?Method bool QLineEdit::isUndoAvailable()
[const]intmaxLengthMethod int QLineEdit::maxLength()
voidmaxLength=(int arg1)Method void QLineEdit::setMaxLength(int)
[const]QSizeminimumSizeHintVirtual method QSize QLineEdit::minimumSizeHint()
[const]boolmodifiedMethod bool QLineEdit::isModified()
voidmodified=(bool arg1)Method void QLineEdit::setModified(bool)
[const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QLineEdit::paintEngine()
voidpasteMethod void QLineEdit::paste()
[const]boolreadOnlyMethod bool QLineEdit::isReadOnly()
voidreadOnly=(bool arg1)Method void QLineEdit::setReadOnly(bool)
voidredoMethod void QLineEdit::redo()
[const]boolredoAvailableMethod bool QLineEdit::isRedoAvailable()
[signal]voidreturnPressedSignal declaration for QLineEdit::returnPressed()
voidselectAllMethod void QLineEdit::selectAll()
[const]stringselectedTextMethod QString QLineEdit::selectedText()
[signal]voidselectionChangedSignal declaration for QLineEdit::selectionChanged()
[const]intselectionStartMethod int QLineEdit::selectionStart()
voidsetAlignment(Qt_QFlags_AlignmentFlag flag)Method void QLineEdit::setAlignment(QFlags<Qt::AlignmentFlag> flag)
voidsetCompleter(QCompleter ptr completer)Method void QLineEdit::setCompleter(QCompleter *completer)
voidsetCursorPosition(int arg1)Method void QLineEdit::setCursorPosition(int)
voidsetDragEnabled(bool b)Method void QLineEdit::setDragEnabled(bool b)
voidsetEchoMode(const QLineEdit_EchoMode arg1)Method void QLineEdit::setEchoMode(QLineEdit::EchoMode)
voidsetFrame(bool arg1)Method void QLineEdit::setFrame(bool)
voidsetInputMask(string inputMask)Method void QLineEdit::setInputMask(const QString &inputMask)
voidsetMaxLength(int arg1)Method void QLineEdit::setMaxLength(int)
voidsetModified(bool arg1)Method void QLineEdit::setModified(bool)
voidsetReadOnly(bool arg1)Method void QLineEdit::setReadOnly(bool)
voidsetSelection(int arg1,
int arg2)
Method void QLineEdit::setSelection(int, int)
voidsetText(string arg1)Method void QLineEdit::setText(const QString &)
voidsetTextMargins(int left,
int top,
int right,
int bottom)
Method void QLineEdit::setTextMargins(int left, int top, int right, int bottom)
voidsetTextMargins(const QMargins margins)Method void QLineEdit::setTextMargins(const QMargins &margins)
voidsetValidator(const QValidator ptr arg1)Method void QLineEdit::setValidator(const QValidator *)
voidsetVisible(bool visible)Virtual method void QLineEdit::setVisible(bool visible)
[const]QSizesizeHintVirtual method QSize QLineEdit::sizeHint()
[const]stringtextMethod QString QLineEdit::text()
voidtext=(string arg1)Method void QLineEdit::setText(const QString &)
[signal]voidtextChanged(string arg1)Signal declaration for QLineEdit::textChanged(const QString &)
[signal]voidtextEdited(string arg1)Signal declaration for QLineEdit::textEdited(const QString &)
[const]QMarginstextMarginsMethod QMargins QLineEdit::textMargins()
voidtextMargins=(const QMargins margins)Method void QLineEdit::setTextMargins(const QMargins &margins)
voidundoMethod void QLineEdit::undo()
[const]boolundoAvailableMethod bool QLineEdit::isUndoAvailable()
[const]const QValidator ptrvalidatorMethod const QValidator *QLineEdit::validator()
voidvalidator=(const QValidator ptr arg1)Method void QLineEdit::setValidator(const QValidator *)

Public static methods and constants

[static,const]QLineEdit_EchoModeNoEchoEnum constant QLineEdit::NoEcho
[static,const]QLineEdit_EchoModeNormalEnum constant QLineEdit::Normal
[static,const]QLineEdit_EchoModePasswordEnum constant QLineEdit::Password
[static,const]QLineEdit_EchoModePasswordEchoOnEditEnum constant QLineEdit::PasswordEchoOnEdit
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QLineEdit::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QLineEdit::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QLineEdit::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QLineEdit::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr arg1)Virtual method void QLineEdit::actionEvent(QActionEvent *)
voidchangeEvent(QEvent ptr arg1)Virtual method void QLineEdit::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr arg1)Virtual method void QLineEdit::childEvent(QChildEvent *)
voidcloseEvent(QCloseEvent ptr arg1)Virtual method void QLineEdit::closeEvent(QCloseEvent *)
voidcontextMenuEvent(QContextMenuEvent ptr arg1)Virtual method void QLineEdit::contextMenuEvent(QContextMenuEvent *)
[const]QRectcursorRectMethod QRect QLineEdit::cursorRect()
voidcustomEvent(QEvent ptr arg1)Virtual method void QLineEdit::customEvent(QEvent *)
voiddisconnectNotify(string signal)Virtual method void QLineEdit::disconnectNotify(const char *signal)
voiddragEnterEvent(QDragEnterEvent ptr arg1)Virtual method void QLineEdit::dragEnterEvent(QDragEnterEvent *)
voiddragLeaveEvent(QDragLeaveEvent ptr e)Virtual method void QLineEdit::dragLeaveEvent(QDragLeaveEvent *e)
voiddragMoveEvent(QDragMoveEvent ptr e)Virtual method void QLineEdit::dragMoveEvent(QDragMoveEvent *e)
voiddropEvent(QDropEvent ptr arg1)Virtual method void QLineEdit::dropEvent(QDropEvent *)
voidenabledChange(bool arg1)Virtual method void QLineEdit::enabledChange(bool)
voidenterEvent(QEvent ptr arg1)Virtual method void QLineEdit::enterEvent(QEvent *)
voidfocusInEvent(QFocusEvent ptr arg1)Virtual method void QLineEdit::focusInEvent(QFocusEvent *)
boolfocusNextChildMethod bool QLineEdit::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QLineEdit::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr arg1)Virtual method void QLineEdit::focusOutEvent(QFocusEvent *)
boolfocusPreviousChildMethod bool QLineEdit::focusPreviousChild()
voidfontChange(const QFont arg1)Virtual method void QLineEdit::fontChange(const QFont &)
voidhideEvent(QHideEvent ptr arg1)Virtual method void QLineEdit::hideEvent(QHideEvent *)
[const]voidinitStyleOption(QStyleOptionFrame ptr option)Method void QLineEdit::initStyleOption(QStyleOptionFrame *option)
voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QLineEdit::inputMethodEvent(QInputMethodEvent *)
voidkeyPressEvent(QKeyEvent ptr arg1)Virtual method void QLineEdit::keyPressEvent(QKeyEvent *)
voidkeyReleaseEvent(QKeyEvent ptr arg1)Virtual method void QLineEdit::keyReleaseEvent(QKeyEvent *)
voidlanguageChangeVirtual method void QLineEdit::languageChange()
voidleaveEvent(QEvent ptr arg1)Virtual method void QLineEdit::leaveEvent(QEvent *)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QLineEdit::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr arg1)Virtual method void QLineEdit::mouseDoubleClickEvent(QMouseEvent *)
voidmouseMoveEvent(QMouseEvent ptr arg1)Virtual method void QLineEdit::mouseMoveEvent(QMouseEvent *)
voidmousePressEvent(QMouseEvent ptr arg1)Virtual method void QLineEdit::mousePressEvent(QMouseEvent *)
voidmouseReleaseEvent(QMouseEvent ptr arg1)Virtual method void QLineEdit::mouseReleaseEvent(QMouseEvent *)
voidmoveEvent(QMoveEvent ptr arg1)Virtual method void QLineEdit::moveEvent(QMoveEvent *)
voidpaintEvent(QPaintEvent ptr arg1)Virtual method void QLineEdit::paintEvent(QPaintEvent *)
voidpaletteChange(const QPalette arg1)Virtual method void QLineEdit::paletteChange(const QPalette &)
voidqt_create(unsigned long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QLineEdit::create(WId, bool initializeWindow, bool destroyOldWindow)
voidqt_destroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QLineEdit::destroy(bool destroyWindow, bool destroySubWindows)
[const]intreceivers(string signal)Method int QLineEdit::receivers(const char *signal)
voidresetInputContextMethod void QLineEdit::resetInputContext()
voidresizeEvent(QResizeEvent ptr arg1)Virtual method void QLineEdit::resizeEvent(QResizeEvent *)
[const]QObject ptrsenderMethod QObject *QLineEdit::sender()
voidshowEvent(QShowEvent ptr arg1)Virtual method void QLineEdit::showEvent(QShowEvent *)
voidstyleChange(QStyle arg1)Virtual method void QLineEdit::styleChange(QStyle &)
voidtabletEvent(QTabletEvent ptr arg1)Virtual method void QLineEdit::tabletEvent(QTabletEvent *)
voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QLineEdit::timerEvent(QTimerEvent *)
voidupdateMicroFocusMethod void QLineEdit::updateMicroFocus()
voidwheelEvent(QWheelEvent ptr arg1)Virtual method void QLineEdit::wheelEvent(QWheelEvent *)
voidwindowActivationChange(bool arg1)Virtual method void QLineEdit::windowActivationChange(bool)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

NoEcho

Signature: [static,const] QLineEdit_EchoMode NoEcho

Description: Enum constant QLineEdit::NoEcho

Python specific notes:
The object exposes a readable attribute 'NoEcho'. This is the getter.

Normal

Signature: [static,const] QLineEdit_EchoMode Normal

Description: Enum constant QLineEdit::Normal

Python specific notes:
The object exposes a readable attribute 'Normal'. This is the getter.

Password

Signature: [static,const] QLineEdit_EchoMode Password

Description: Enum constant QLineEdit::Password

Python specific notes:
The object exposes a readable attribute 'Password'. This is the getter.

PasswordEchoOnEdit

Signature: [static,const] QLineEdit_EchoMode PasswordEchoOnEdit

Description: Enum constant QLineEdit::PasswordEchoOnEdit

Python specific notes:
The object exposes a readable attribute 'PasswordEchoOnEdit'. This is the getter.

_const_cast

Signature: [const] QLineEdit ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

acceptableInput

Signature: [const] bool acceptableInput

Description: Method bool QLineEdit::hasAcceptableInput()

Python specific notes:
The object exposes a readable attribute 'acceptableInput'. This is the getter.

actionEvent

Signature: void actionEvent (QActionEvent ptr arg1)

Description: Virtual method void QLineEdit::actionEvent(QActionEvent *)

This method can be reimplemented in a derived class.

alignment

Signature: [const] Qt_QFlags_AlignmentFlag alignment

Description: Method QFlags<Qt::AlignmentFlag> QLineEdit::alignment()

Python specific notes:
The object exposes a readable attribute 'alignment'. This is the getter.

alignment=

Signature: void alignment= (Qt_QFlags_AlignmentFlag flag)

Description: Method void QLineEdit::setAlignment(QFlags<Qt::AlignmentFlag> flag)

Python specific notes:
The object exposes a writable attribute 'alignment'. This is the setter.

backspace

Signature: void backspace

Description: Method void QLineEdit::backspace()

changeEvent

Signature: void changeEvent (QEvent ptr arg1)

Description: Virtual method void QLineEdit::changeEvent(QEvent *)

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr arg1)

Description: Virtual method void QLineEdit::childEvent(QChildEvent *)

This method can be reimplemented in a derived class.

clear

Signature: void clear

Description: Method void QLineEdit::clear()

closeEvent

Signature: void closeEvent (QCloseEvent ptr arg1)

Description: Virtual method void QLineEdit::closeEvent(QCloseEvent *)

This method can be reimplemented in a derived class.

completer

Signature: [const] QCompleter ptr completer

Description: Method QCompleter *QLineEdit::completer()

Python specific notes:
The object exposes a readable attribute 'completer'. This is the getter.

completer=

Signature: void completer= (QCompleter ptr completer)

Description: Method void QLineEdit::setCompleter(QCompleter *completer)

Python specific notes:
The object exposes a writable attribute 'completer'. This is the setter.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr arg1)

Description: Virtual method void QLineEdit::contextMenuEvent(QContextMenuEvent *)

This method can be reimplemented in a derived class.

copy

Signature: [const] void copy

Description: Method void QLineEdit::copy()

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

createStandardContextMenu

Signature: QMenu ptr createStandardContextMenu

Description: Method QMenu *QLineEdit::createStandardContextMenu()

cursorBackward

Signature: void cursorBackward (bool mark, int steps = 1)

Description: Method void QLineEdit::cursorBackward(bool mark, int steps)

cursorForward

Signature: void cursorForward (bool mark, int steps = 1)

Description: Method void QLineEdit::cursorForward(bool mark, int steps)

cursorPosition

Signature: [const] int cursorPosition

Description: Method int QLineEdit::cursorPosition()

Python specific notes:
The object exposes a readable attribute 'cursorPosition'. This is the getter.

cursorPosition=

Signature: void cursorPosition= (int arg1)

Description: Method void QLineEdit::setCursorPosition(int)

Python specific notes:
The object exposes a writable attribute 'cursorPosition'. This is the setter.

cursorPositionAt

Signature: int cursorPositionAt (const QPoint pos)

Description: Method int QLineEdit::cursorPositionAt(const QPoint &pos)

cursorPositionChanged

Signature: [signal] void cursorPositionChanged (int arg1, int arg2)

Description: Signal declaration for QLineEdit::cursorPositionChanged(int, int)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'cursorPositionChanged'. This is the getter.
The object exposes a writable attribute 'cursorPositionChanged'. This is the setter.

cursorRect

Signature: [const] QRect cursorRect

Description: Method QRect QLineEdit::cursorRect()

This method is protected and can only be called from inside a derived class.

cursorWordBackward

Signature: void cursorWordBackward (bool mark)

Description: Method void QLineEdit::cursorWordBackward(bool mark)

cursorWordForward

Signature: void cursorWordForward (bool mark)

Description: Method void QLineEdit::cursorWordForward(bool mark)

customContextMenuRequested

Signature: [signal] void customContextMenuRequested (const QPoint pos)

Description: Signal declaration for QLineEdit::customContextMenuRequested(const QPoint &pos)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'customContextMenuRequested'. This is the getter.
The object exposes a writable attribute 'customContextMenuRequested'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr arg1)

Description: Virtual method void QLineEdit::customEvent(QEvent *)

This method can be reimplemented in a derived class.

cut

Signature: void cut

Description: Method void QLineEdit::cut()

del

Signature: void del

Description: Method void QLineEdit::del()

Python specific notes:
This attribute is available as 'del_' in Python.

deselect

Signature: void deselect

Description: Method void QLineEdit::deselect()

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QLineEdit::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (string signal)

Description: Virtual method void QLineEdit::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

displayText

Signature: [const] string displayText

Description: Method QString QLineEdit::displayText()

Python specific notes:
The object exposes a readable attribute 'displayText'. This is the getter.

dragEnabled

Signature: [const] bool dragEnabled

Description: Method bool QLineEdit::dragEnabled()

Python specific notes:
The object exposes a readable attribute 'dragEnabled'. This is the getter.

dragEnabled=

Signature: void dragEnabled= (bool b)

Description: Method void QLineEdit::setDragEnabled(bool b)

Python specific notes:
The object exposes a writable attribute 'dragEnabled'. This is the setter.

dragEnterEvent

Signature: void dragEnterEvent (QDragEnterEvent ptr arg1)

Description: Virtual method void QLineEdit::dragEnterEvent(QDragEnterEvent *)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr e)

Description: Virtual method void QLineEdit::dragLeaveEvent(QDragLeaveEvent *e)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr e)

Description: Virtual method void QLineEdit::dragMoveEvent(QDragMoveEvent *e)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr arg1)

Description: Virtual method void QLineEdit::dropEvent(QDropEvent *)

This method can be reimplemented in a derived class.

echoMode

Signature: [const] QLineEdit_EchoMode echoMode

Description: Method QLineEdit::EchoMode QLineEdit::echoMode()

Python specific notes:
The object exposes a readable attribute 'echoMode'. This is the getter.

echoMode=

Signature: void echoMode= (const QLineEdit_EchoMode arg1)

Description: Method void QLineEdit::setEchoMode(QLineEdit::EchoMode)

Python specific notes:
The object exposes a writable attribute 'echoMode'. This is the setter.

editingFinished

Signature: [signal] void editingFinished

Description: Signal declaration for QLineEdit::editingFinished()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'editingFinished'. This is the getter.
The object exposes a writable attribute 'editingFinished'. This is the setter.

emit_cursorPositionChanged

Signature: void emit_cursorPositionChanged (int arg1, int arg2)

Description: Emitter for signal void QLineEdit::cursorPositionChanged(int, int)

Call this method to emit this signal.

emit_customContextMenuRequested

Signature: void emit_customContextMenuRequested (const QPoint pos)

Description: Emitter for signal void QLineEdit::customContextMenuRequested(const QPoint &pos)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = 0)

Description: Emitter for signal void QLineEdit::destroyed(QObject *)

Call this method to emit this signal.

emit_editingFinished

Signature: void emit_editingFinished

Description: Emitter for signal void QLineEdit::editingFinished()

Call this method to emit this signal.

emit_returnPressed

Signature: void emit_returnPressed

Description: Emitter for signal void QLineEdit::returnPressed()

Call this method to emit this signal.

emit_selectionChanged

Signature: void emit_selectionChanged

Description: Emitter for signal void QLineEdit::selectionChanged()

Call this method to emit this signal.

emit_textChanged

Signature: void emit_textChanged (string arg1)

Description: Emitter for signal void QLineEdit::textChanged(const QString &)

Call this method to emit this signal.

emit_textEdited

Signature: void emit_textEdited (string arg1)

Description: Emitter for signal void QLineEdit::textEdited(const QString &)

Call this method to emit this signal.

enabledChange

Signature: void enabledChange (bool arg1)

Description: Virtual method void QLineEdit::enabledChange(bool)

This method can be reimplemented in a derived class.

end

Signature: void end (bool mark)

Description: Method void QLineEdit::end(bool mark)

enterEvent

Signature: void enterEvent (QEvent ptr arg1)

Description: Virtual method void QLineEdit::enterEvent(QEvent *)

This method can be reimplemented in a derived class.

event

Signature: bool event (QEvent ptr arg1)

Description: Virtual method bool QLineEdit::event(QEvent *)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr arg1, QEvent ptr arg2)

Description: Virtual method bool QLineEdit::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr arg1)

Description: Virtual method void QLineEdit::focusInEvent(QFocusEvent *)

This method can be reimplemented in a derived class.

focusNextChild

Signature: bool focusNextChild

Description: Method bool QLineEdit::focusNextChild()

This method is protected and can only be called from inside a derived class.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Virtual method bool QLineEdit::focusNextPrevChild(bool next)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr arg1)

Description: Virtual method void QLineEdit::focusOutEvent(QFocusEvent *)

This method can be reimplemented in a derived class.

focusPreviousChild

Signature: bool focusPreviousChild

Description: Method bool QLineEdit::focusPreviousChild()

This method is protected and can only be called from inside a derived class.

fontChange

Signature: void fontChange (const QFont arg1)

Description: Virtual method void QLineEdit::fontChange(const QFont &)

This method can be reimplemented in a derived class.

frame

Signature: [const] bool frame

Description: Method bool QLineEdit::hasFrame()

Python specific notes:
The object exposes a readable attribute 'frame'. This is the getter.

frame=

Signature: void frame= (bool arg1)

Description: Method void QLineEdit::setFrame(bool)

Python specific notes:
The object exposes a writable attribute 'frame'. This is the setter.

getTextMargins

Signature: [const] void getTextMargins (int ptr left, int ptr top, int ptr right, int ptr bottom)

Description: Method void QLineEdit::getTextMargins(int *left, int *top, int *right, int *bottom)

hasAcceptableInput

Signature: [const] bool hasAcceptableInput

Description: Method bool QLineEdit::hasAcceptableInput()

Python specific notes:
The object exposes a readable attribute 'acceptableInput'. This is the getter.

hasFrame

Signature: [const] bool hasFrame

Description: Method bool QLineEdit::hasFrame()

Python specific notes:
The object exposes a readable attribute 'frame'. This is the getter.

hasSelectedText

Signature: [const] bool hasSelectedText

Description: Method bool QLineEdit::hasSelectedText()

Python specific notes:
The object exposes a readable attribute 'hasSelectedText'. This is the getter.

heightForWidth

Signature: [const] int heightForWidth (int arg1)

Description: Virtual method int QLineEdit::heightForWidth(int)

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr arg1)

Description: Virtual method void QLineEdit::hideEvent(QHideEvent *)

This method can be reimplemented in a derived class.

home

Signature: void home (bool mark)

Description: Method void QLineEdit::home(bool mark)

initStyleOption

Signature: [const] void initStyleOption (QStyleOptionFrame ptr option)

Description: Method void QLineEdit::initStyleOption(QStyleOptionFrame *option)

This method is protected and can only be called from inside a derived class.

inputMask

Signature: [const] string inputMask

Description: Method QString QLineEdit::inputMask()

Python specific notes:
The object exposes a readable attribute 'inputMask'. This is the getter.

inputMask=

Signature: void inputMask= (string inputMask)

Description: Method void QLineEdit::setInputMask(const QString &inputMask)

Python specific notes:
The object exposes a writable attribute 'inputMask'. This is the setter.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr arg1)

Description: Virtual method void QLineEdit::inputMethodEvent(QInputMethodEvent *)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery arg1)

Description: Virtual method QVariant QLineEdit::inputMethodQuery(Qt::InputMethodQuery)

This method can be reimplemented in a derived class.

insert

Signature: void insert (string arg1)

Description: Method void QLineEdit::insert(const QString &)

isModified?

Signature: [const] bool isModified?

Description: Method bool QLineEdit::isModified()

Python specific notes:
The object exposes a readable attribute 'modified'. This is the getter.

isReadOnly?

Signature: [const] bool isReadOnly?

Description: Method bool QLineEdit::isReadOnly()

Python specific notes:
The object exposes a readable attribute 'readOnly'. This is the getter.

isRedoAvailable?

Signature: [const] bool isRedoAvailable?

Description: Method bool QLineEdit::isRedoAvailable()

Python specific notes:
The object exposes a readable attribute 'redoAvailable'. This is the getter.

isUndoAvailable?

Signature: [const] bool isUndoAvailable?

Description: Method bool QLineEdit::isUndoAvailable()

Python specific notes:
The object exposes a readable attribute 'undoAvailable'. This is the getter.

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr arg1)

Description: Virtual method void QLineEdit::keyPressEvent(QKeyEvent *)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr arg1)

Description: Virtual method void QLineEdit::keyReleaseEvent(QKeyEvent *)

This method can be reimplemented in a derived class.

languageChange

Signature: void languageChange

Description: Virtual method void QLineEdit::languageChange()

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr arg1)

Description: Virtual method void QLineEdit::leaveEvent(QEvent *)

This method can be reimplemented in a derived class.

maxLength

Signature: [const] int maxLength

Description: Method int QLineEdit::maxLength()

Python specific notes:
The object exposes a readable attribute 'maxLength'. This is the getter.

maxLength=

Signature: void maxLength= (int arg1)

Description: Method void QLineEdit::setMaxLength(int)

Python specific notes:
The object exposes a writable attribute 'maxLength'. This is the setter.

metric

Signature: [const] int metric (const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QLineEdit::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

minimumSizeHint

Signature: [const] QSize minimumSizeHint

Description: Virtual method QSize QLineEdit::minimumSizeHint()

This method can be reimplemented in a derived class.

modified

Signature: [const] bool modified

Description: Method bool QLineEdit::isModified()

Python specific notes:
The object exposes a readable attribute 'modified'. This is the getter.

modified=

Signature: void modified= (bool arg1)

Description: Method void QLineEdit::setModified(bool)

Python specific notes:
The object exposes a writable attribute 'modified'. This is the setter.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QMouseEvent ptr arg1)

Description: Virtual method void QLineEdit::mouseDoubleClickEvent(QMouseEvent *)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr arg1)

Description: Virtual method void QLineEdit::mouseMoveEvent(QMouseEvent *)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr arg1)

Description: Virtual method void QLineEdit::mousePressEvent(QMouseEvent *)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr arg1)

Description: Virtual method void QLineEdit::mouseReleaseEvent(QMouseEvent *)

This method can be reimplemented in a derived class.

moveEvent

Signature: void moveEvent (QMoveEvent ptr arg1)

Description: Virtual method void QLineEdit::moveEvent(QMoveEvent *)

This method can be reimplemented in a derived class.

new

(1) Signature: [static] new QLineEdit new (QWidget ptr parent = 0)

Description: Constructor QLineEdit::QLineEdit(QWidget *parent)

This method creates an object of class QLineEdit.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QLineEdit new (string arg1, QWidget ptr parent = 0)

Description: Constructor QLineEdit::QLineEdit(const QString &, QWidget *parent)

This method creates an object of class QLineEdit.

Python specific notes:
This method is the default initializer of the object.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QLineEdit::paintEngine()

This method can be reimplemented in a derived class.

paintEvent

Signature: void paintEvent (QPaintEvent ptr arg1)

Description: Virtual method void QLineEdit::paintEvent(QPaintEvent *)

This method can be reimplemented in a derived class.

paletteChange

Signature: void paletteChange (const QPalette arg1)

Description: Virtual method void QLineEdit::paletteChange(const QPalette &)

This method can be reimplemented in a derived class.

paste

Signature: void paste

Description: Method void QLineEdit::paste()

qt_create

Signature: void qt_create (unsigned long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QLineEdit::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

qt_destroy

Signature: void qt_destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QLineEdit::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

readOnly

Signature: [const] bool readOnly

Description: Method bool QLineEdit::isReadOnly()

Python specific notes:
The object exposes a readable attribute 'readOnly'. This is the getter.

readOnly=

Signature: void readOnly= (bool arg1)

Description: Method void QLineEdit::setReadOnly(bool)

Python specific notes:
The object exposes a writable attribute 'readOnly'. This is the setter.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QLineEdit::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

redo

Signature: void redo

Description: Method void QLineEdit::redo()

redoAvailable

Signature: [const] bool redoAvailable

Description: Method bool QLineEdit::isRedoAvailable()

Python specific notes:
The object exposes a readable attribute 'redoAvailable'. This is the getter.

resetInputContext

Signature: void resetInputContext

Description: Method void QLineEdit::resetInputContext()

This method is protected and can only be called from inside a derived class.

resizeEvent

Signature: void resizeEvent (QResizeEvent ptr arg1)

Description: Virtual method void QLineEdit::resizeEvent(QResizeEvent *)

This method can be reimplemented in a derived class.

returnPressed

Signature: [signal] void returnPressed

Description: Signal declaration for QLineEdit::returnPressed()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'returnPressed'. This is the getter.
The object exposes a writable attribute 'returnPressed'. This is the setter.

selectAll

Signature: void selectAll

Description: Method void QLineEdit::selectAll()

selectedText

Signature: [const] string selectedText

Description: Method QString QLineEdit::selectedText()

Python specific notes:
The object exposes a readable attribute 'selectedText'. This is the getter.

selectionChanged

Signature: [signal] void selectionChanged

Description: Signal declaration for QLineEdit::selectionChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'selectionChanged'. This is the getter.
The object exposes a writable attribute 'selectionChanged'. This is the setter.

selectionStart

Signature: [const] int selectionStart

Description: Method int QLineEdit::selectionStart()

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QLineEdit::sender()

This method is protected and can only be called from inside a derived class.

setAlignment

Signature: void setAlignment (Qt_QFlags_AlignmentFlag flag)

Description: Method void QLineEdit::setAlignment(QFlags<Qt::AlignmentFlag> flag)

Python specific notes:
The object exposes a writable attribute 'alignment'. This is the setter.

setCompleter

Signature: void setCompleter (QCompleter ptr completer)

Description: Method void QLineEdit::setCompleter(QCompleter *completer)

Python specific notes:
The object exposes a writable attribute 'completer'. This is the setter.

setCursorPosition

Signature: void setCursorPosition (int arg1)

Description: Method void QLineEdit::setCursorPosition(int)

Python specific notes:
The object exposes a writable attribute 'cursorPosition'. This is the setter.

setDragEnabled

Signature: void setDragEnabled (bool b)

Description: Method void QLineEdit::setDragEnabled(bool b)

Python specific notes:
The object exposes a writable attribute 'dragEnabled'. This is the setter.

setEchoMode

Signature: void setEchoMode (const QLineEdit_EchoMode arg1)

Description: Method void QLineEdit::setEchoMode(QLineEdit::EchoMode)

Python specific notes:
The object exposes a writable attribute 'echoMode'. This is the setter.

setFrame

Signature: void setFrame (bool arg1)

Description: Method void QLineEdit::setFrame(bool)

Python specific notes:
The object exposes a writable attribute 'frame'. This is the setter.

setInputMask

Signature: void setInputMask (string inputMask)

Description: Method void QLineEdit::setInputMask(const QString &inputMask)

Python specific notes:
The object exposes a writable attribute 'inputMask'. This is the setter.

setMaxLength

Signature: void setMaxLength (int arg1)

Description: Method void QLineEdit::setMaxLength(int)

Python specific notes:
The object exposes a writable attribute 'maxLength'. This is the setter.

setModified

Signature: void setModified (bool arg1)

Description: Method void QLineEdit::setModified(bool)

Python specific notes:
The object exposes a writable attribute 'modified'. This is the setter.

setReadOnly

Signature: void setReadOnly (bool arg1)

Description: Method void QLineEdit::setReadOnly(bool)

Python specific notes:
The object exposes a writable attribute 'readOnly'. This is the setter.

setSelection

Signature: void setSelection (int arg1, int arg2)

Description: Method void QLineEdit::setSelection(int, int)

setText

Signature: void setText (string arg1)

Description: Method void QLineEdit::setText(const QString &)

Python specific notes:
The object exposes a writable attribute 'text'. This is the setter.

setTextMargins

(1) Signature: void setTextMargins (int left, int top, int right, int bottom)

Description: Method void QLineEdit::setTextMargins(int left, int top, int right, int bottom)

(2) Signature: void setTextMargins (const QMargins margins)

Description: Method void QLineEdit::setTextMargins(const QMargins &margins)

Python specific notes:
The object exposes a writable attribute 'textMargins'. This is the setter.

setValidator

Signature: void setValidator (const QValidator ptr arg1)

Description: Method void QLineEdit::setValidator(const QValidator *)

Python specific notes:
The object exposes a writable attribute 'validator'. This is the setter.

setVisible

Signature: void setVisible (bool visible)

Description: Virtual method void QLineEdit::setVisible(bool visible)

This method can be reimplemented in a derived class.

showEvent

Signature: void showEvent (QShowEvent ptr arg1)

Description: Virtual method void QLineEdit::showEvent(QShowEvent *)

This method can be reimplemented in a derived class.

sizeHint

Signature: [const] QSize sizeHint

Description: Virtual method QSize QLineEdit::sizeHint()

This method can be reimplemented in a derived class.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

styleChange

Signature: void styleChange (QStyle arg1)

Description: Virtual method void QLineEdit::styleChange(QStyle &)

This method can be reimplemented in a derived class.

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr arg1)

Description: Virtual method void QLineEdit::tabletEvent(QTabletEvent *)

This method can be reimplemented in a derived class.

text

Signature: [const] string text

Description: Method QString QLineEdit::text()

Python specific notes:
The object exposes a readable attribute 'text'. This is the getter.

text=

Signature: void text= (string arg1)

Description: Method void QLineEdit::setText(const QString &)

Python specific notes:
The object exposes a writable attribute 'text'. This is the setter.

textChanged

Signature: [signal] void textChanged (string arg1)

Description: Signal declaration for QLineEdit::textChanged(const QString &)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'textChanged'. This is the getter.
The object exposes a writable attribute 'textChanged'. This is the setter.

textEdited

Signature: [signal] void textEdited (string arg1)

Description: Signal declaration for QLineEdit::textEdited(const QString &)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'textEdited'. This is the getter.
The object exposes a writable attribute 'textEdited'. This is the setter.

textMargins

Signature: [const] QMargins textMargins

Description: Method QMargins QLineEdit::textMargins()

Python specific notes:
The object exposes a readable attribute 'textMargins'. This is the getter.

textMargins=

Signature: void textMargins= (const QMargins margins)

Description: Method void QLineEdit::setTextMargins(const QMargins &margins)

Python specific notes:
The object exposes a writable attribute 'textMargins'. This is the setter.

timerEvent

Signature: void timerEvent (QTimerEvent ptr arg1)

Description: Virtual method void QLineEdit::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

tr

(1) Signature: [static] string tr (string s, string c = 0)

Description: Static method QString QLineEdit::tr(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string tr (string s, string c, int n)

Description: Static method QString QLineEdit::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

(1) Signature: [static] string trUtf8 (string s, string c = 0)

Description: Static method QString QLineEdit::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string trUtf8 (string s, string c, int n)

Description: Static method QString QLineEdit::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

undo

Signature: void undo

Description: Method void QLineEdit::undo()

undoAvailable

Signature: [const] bool undoAvailable

Description: Method bool QLineEdit::isUndoAvailable()

Python specific notes:
The object exposes a readable attribute 'undoAvailable'. This is the getter.

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QLineEdit::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

validator

Signature: [const] const QValidator ptr validator

Description: Method const QValidator *QLineEdit::validator()

Python specific notes:
The object exposes a readable attribute 'validator'. This is the getter.

validator=

Signature: void validator= (const QValidator ptr arg1)

Description: Method void QLineEdit::setValidator(const QValidator *)

Python specific notes:
The object exposes a writable attribute 'validator'. This is the setter.

wheelEvent

Signature: void wheelEvent (QWheelEvent ptr arg1)

Description: Virtual method void QLineEdit::wheelEvent(QWheelEvent *)

This method can be reimplemented in a derived class.

windowActivationChange

Signature: void windowActivationChange (bool arg1)

Description: Virtual method void QLineEdit::windowActivationChange(bool)

This method can be reimplemented in a derived class.