|
| QQuickTextFieldPrivate () |
| Single-line text input field.
|
| ~QQuickTextFieldPrivate () |
QMarginsF | getInset () const |
qreal | getTopInset () const |
qreal | getLeftInset () const |
qreal | getRightInset () const |
qreal | getBottomInset () const |
void | setTopInset (qreal value, bool reset=false) |
void | setLeftInset (qreal value, bool reset=false) |
void | setRightInset (qreal value, bool reset=false) |
void | setBottomInset (qreal value, bool reset=false) |
void | resizeBackground () |
void | resolveFont () |
void | inheritFont (const QFont &font) |
void | updateFont (const QFont &font) |
void | setFont_helper (const QFont &font) |
qreal | getImplicitWidth () const override |
qreal | getImplicitHeight () const override |
void | implicitWidthChanged () override |
void | implicitHeightChanged () override |
void | readOnlyChanged (bool isReadOnly) |
void | echoModeChanged (QQuickTextField::EchoMode echoMode) |
void | cancelBackground () |
void | executeBackground (bool complete=false) |
void | itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override |
void | itemImplicitWidthChanged (QQuickItem *item) override |
void | itemImplicitHeightChanged (QQuickItem *item) override |
void | itemDestroyed (QQuickItem *item) override |
QPalette | defaultPalette () const override |
bool | setLastFocusChangeReason (Qt::FocusReason reason) override |
| QQuickTextInputPrivate () |
| ~QQuickTextInputPrivate () |
void | init () |
void | cancelInput () |
void | startCreatingCursor () |
void | ensureVisible (int position, int preeditCursor=0, int preeditLength=0) |
void | updateHorizontalScroll () |
void | updateVerticalScroll () |
bool | determineHorizontalAlignment () |
bool | setHAlign (QQuickTextInput::HAlignment, bool forceAlign=false) |
void | mirrorChange () override |
bool | sendMouseEventToInputContext (QMouseEvent *event) |
void | handleFocusEvent (QFocusEvent *event) |
bool | hasPendingTripleClick () const |
void | setNativeCursorEnabled (bool) |
int | nextMaskBlank (int pos) |
int | prevMaskBlank (int pos) |
bool | isUndoAvailable () const |
bool | isRedoAvailable () const |
void | clearUndo () |
bool | allSelected () const |
bool | hasSelectedText () const |
void | setSelection (int start, int length) |
QString | selectedText () const |
QString | textBeforeSelection () const |
QString | textAfterSelection () const |
int | selectionStart () const |
int | selectionEnd () const |
QRectF | anchorRectangle () const |
int | positionAt (qreal x, qreal y, QTextLine::CursorPosition position) const |
int | positionAt (const QPointF &point, QTextLine::CursorPosition position=QTextLine::CursorBetweenCharacters) const |
void | removeSelection () |
int | start () const |
int | end () const |
QString | realText () const |
Qt::CursorMoveStyle | cursorMoveStyle () const |
void | setCursorMoveStyle (Qt::CursorMoveStyle style) |
void | moveCursor (int pos, bool mark=false) |
void | cursorForward (bool mark, int steps) |
void | cursorWordForward (bool mark) |
void | cursorWordBackward (bool mark) |
void | home (bool mark) |
void | end (bool mark) |
void | backspace () |
void | del () |
void | deselect () |
void | selectAll () |
void | insert (const QString &) |
void | clear () |
void | selectWordAtPos (int) |
void | setCursorPosition (int pos) |
bool | fixup () |
QString | inputMask () const |
void | setInputMask (const QString &mask) |
void | updatePasswordEchoEditing (bool editing) |
void | cancelPasswordEchoTimer () |
Qt::LayoutDirection | textDirection () const |
Qt::LayoutDirection | layoutDirection () const |
void | setLayoutDirection (Qt::LayoutDirection direction) |
void | processKeyEvent (QKeyEvent *ev) |
void | setBlinkingCursorEnabled (bool enable) |
void | updateCursorBlinking () |
void | updateLayout () |
void | updateBaselineOffset () |
| QQuickTextInputPrivate::updateBaselineOffset.
|
qreal | calculateImplicitWidthForText (const QString &text) const |
qreal | getImplicitWidth () const override |
qreal | padding () const |
void | setTopPadding (qreal value, bool reset=false) |
void | setLeftPadding (qreal value, bool reset=false) |
void | setRightPadding (qreal value, bool reset=false) |
void | setBottomPadding (qreal value, bool reset=false) |
bool | isImplicitResizeEnabled () const |
void | setImplicitResizeEnabled (bool enabled) |
| QQuickImplicitSizeItemPrivate () |
| QQuickItemPrivate () |
| ~QQuickItemPrivate () override |
void | init (QQuickItem *parent) |
QQmlListProperty< QObject > | data () |
QQmlListProperty< QObject > | resources () |
QQmlListProperty< QQuickItem > | children () |
QQmlListProperty< QQuickItem > | visibleChildren () |
QQmlListProperty< QQuickState > | states () |
QQmlListProperty< QQuickTransition > | transitions () |
QString | state () const |
void | setState (const QString &) |
QQuickAnchorLine | left () const |
QQuickAnchorLine | right () const |
QQuickAnchorLine | horizontalCenter () const |
QQuickAnchorLine | top () const |
QQuickAnchorLine | bottom () const |
QQuickAnchorLine | verticalCenter () const |
QQuickAnchorLine | baseline () const |
void | localizedTouchEvent (const QTouchEvent *event, bool isFiltering, QMutableTouchEvent *localized) |
bool | hasPointerHandlers () const |
bool | hasEnabledHoverHandlers () const |
virtual void | addPointerHandler (QQuickPointerHandler *h) |
virtual void | removePointerHandler (QQuickPointerHandler *h) |
QObject * | setContextMenu (QObject *menu) |
void | _q_resourceObjectDeleted (QObject *) |
quint64 | _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine) |
template<typename Fn, typename ... Args> |
void | notifyChangeListeners (QQuickItemPrivate::ChangeTypes changeTypes, Fn &&function, Args &&...args) |
virtual void | registerAsContainmentMask (QQuickItem *, bool) |
QQuickAnchors * | anchors () const |
| \qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors.top \qmlproperty AnchorLine QtQuick::Item::anchors.bottom \qmlproperty AnchorLine QtQuick::Item::anchors.left \qmlproperty AnchorLine QtQuick::Item::anchors.right \qmlproperty AnchorLine QtQuick::Item::anchors.horizontalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.verticalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.baseline
|
Qt::MouseButtons | acceptedMouseButtons () const |
void | addItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types) |
void | updateOrAddItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types) |
void | removeItemChangeListener (QQuickItemChangeListener *, ChangeTypes types) |
void | updateOrAddGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types) |
void | updateOrRemoveGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types) |
QQuickStateGroup * | _states () |
QQuickItem::TransformOrigin | origin () const |
QString | dirtyToString () const |
void | dirty (DirtyType) |
void | addToDirtyList () |
void | removeFromDirtyList () |
void | setCulled (bool) |
QSGContext * | sceneGraphContext () const |
QSGRenderContext * | sceneGraphRenderContext () const |
QList< QQuickItem * > | paintOrderChildItems () const |
void | addChild (QQuickItem *) |
void | removeChild (QQuickItem *) |
void | siblingOrderChanged () |
void | markSortedChildrenDirty (QQuickItem *child) |
void | refWindow (QQuickWindow *) |
void | derefWindow () |
qreal | effectiveDevicePixelRatio () const |
void | updateSubFocusItem (QQuickItem *scope, bool focus) |
| Clears all sub focus items from scope.
|
bool | setFocusIfNeeded (QEvent::Type) |
Qt::FocusReason | lastFocusChangeReason () const |
QTransform | windowToItemTransform () const |
| Returns a transform that maps points from window space into item space.
|
QTransform | itemToWindowTransform () const |
| Returns a transform that maps points from item space into window space.
|
void | itemToParentTransform (QTransform *) const |
| Modifies t with this item's local transform relative to its parent.
|
void | setX (qreal x) |
void | xChanged () |
| Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, x, &QQuickItemPrivate::setX, &QQuickItemPrivate::xChanged) |
void | setY (qreal y) |
void | yChanged () |
| Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, y, &QQuickItemPrivate::setY, &QQuickItemPrivate::yChanged) |
void | setWidth (qreal width) |
void | widthChanged () |
| Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, width, &QQuickItemPrivate::setWidth, &QQuickItemPrivate::widthChanged) |
void | setHeight (qreal height) |
void | heightChanged () |
| Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, height, &QQuickItemPrivate::setHeight, &QQuickItemPrivate::heightChanged) |
bool | widthValid () const |
bool | heightValid () const |
qreal | z () const |
qreal | scale () const |
qreal | rotation () const |
qreal | opacity () const |
void | setAccessible () |
void | setImplicitAntialiasing (bool antialiasing) |
void | resolveLayoutMirror () |
void | setImplicitLayoutMirror (bool mirror, bool inherit) |
void | setLayoutMirror (bool mirror) |
bool | isMirrored () const |
void | emitChildrenRectChanged (const QRectF &rect) |
QPointF | computeTransformOrigin () const |
virtual bool | transformChanged (QQuickItem *transformedItem) |
QPointF | adjustedPosForTransform (const QPointF ¢roid, const QPointF &startPos, const QVector2D &activeTranslatation, qreal startScale, qreal activeScale, qreal startRotation, qreal activeRotation) |
QQuickDeliveryAgent * | deliveryAgent () |
QQuickDeliveryAgentPrivate * | deliveryAgentPrivate () |
QQuickDeliveryAgent * | ensureSubsceneDeliveryAgent () |
void | deliverKeyEvent (QKeyEvent *) |
bool | filterKeyEvent (QKeyEvent *, bool post) |
void | deliverShortcutOverrideEvent (QKeyEvent *) |
void | deliverPointerEvent (QEvent *) |
bool | anyPointerHandlerWants (const QPointerEvent *event, const QEventPoint &point) const |
virtual bool | handlePointerEvent (QPointerEvent *, bool avoidGrabbers=false) |
virtual void | setVisible (bool visible) |
bool | isTransparentForPositioner () const |
void | setTransparentForPositioner (bool trans) |
bool | calcEffectiveVisible () const |
bool | setEffectiveVisibleRecur (bool) |
bool | calcEffectiveEnable () const |
void | setEffectiveEnableRecur (QQuickItem *scope, bool) |
QSGTransformNode * | itemNode () |
QSGNode * | childContainerNode () |
QSGOpacityNode * | opacityNode () const |
QQuickDefaultClipNode * | clipNode () const |
QSGRootNode * | rootNode () const |
virtual QSGTransformNode * | createTransformNode () |
void | refFromEffectItem (bool hide) |
void | recursiveRefFromEffectItem (int refs) |
void | derefFromEffectItem (bool unhide) |
void | itemChange (QQuickItem::ItemChange, const QQuickItem::ItemChangeData &) |
void | enableSubtreeChangeNotificationsForParentHierachy () |
void | setHasCursorInChild (bool hasCursor) |
void | setHasHoverInChild (bool hasHover) |
virtual void | updatePolish () |
virtual void | dumpItemTree (int indent) const |
QLayoutPolicy | sizePolicy () const |
void | setSizePolicy (const QLayoutPolicy::Policy &horizontalPolicy, const QLayoutPolicy::Policy &verticalPolicy) |
void | ensureExtraData () |
void | setObjectNameWithoutBindings (const QString &name) |
| QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion) |
virtual | ~QObjectPrivate () |
void | deleteChildren () |
void | clearBindingStorage () |
void | setParent_helper (QObject *) |
void | moveToThread_helper () |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status) |
QObjectList | receiverList (const char *signal) const |
void | ensureConnectionData () |
void | addConnection (int signal, Connection *c) |
int | signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const |
bool | isSignalConnected (uint signalIdx, bool checkDeclarative=true) const |
bool | maybeSignalConnected (uint signalIndex) const |
bool | isDeclarativeSignalConnected (uint signalIdx) const |
void | connectNotify (const QMetaMethod &signal) |
void | disconnectNotify (const QMetaMethod &signal) |
void | reinitBindingStorageAfterThreadMove () |
virtual std::string | flagsForDumping () const |
virtual void | writeToDebugStream (QDebug &) const |
QtPrivate::QPropertyAdaptorSlotObject * | getPropertyAdaptorSlotObject (const QMetaProperty &property) |
| QObjectData ()=default |
virtual | ~QObjectData ()=0 |
const QMetaObject * | dynamicMetaObject () const |
virtual | ~QQuickPaletteProviderPrivateBase ()=default |
virtual QQuickPalette * | palette () const |
virtual void | setPalette (QQuickPalette *p) |
virtual void | resetPalette () |
virtual bool | providesPalette () const |
QPalette | parentPalette (const QPalette &fallbackPalette) const override |
void | inheritPalette (const QPalette &parentPalette) |
virtual void | updateChildrenPalettes (const QPalette &parentPalette) |
virtual | ~QQuickAbstractPaletteProvider ()=default |
virtual | ~QQuickItemChangeListener () |
virtual void | itemSiblingOrderChanged (QQuickItem *) |
virtual void | itemVisibilityChanged (QQuickItem *) |
virtual void | itemEnabledChanged (QQuickItem *) |
virtual void | itemOpacityChanged (QQuickItem *) |
virtual void | itemChildAdded (QQuickItem *, QQuickItem *) |
virtual void | itemChildRemoved (QQuickItem *, QQuickItem *) |
virtual void | itemParentChanged (QQuickItem *, QQuickItem *) |
virtual void | itemRotationChanged (QQuickItem *) |
virtual void | itemFocusChanged (QQuickItem *, Qt::FocusReason) |
virtual void | itemScaleChanged (QQuickItem *) |
virtual void | itemTransformChanged (QQuickItem *, QQuickItem *) |
virtual QQuickAnchorsPrivate * | anchorPrivate () |
virtual bool | baseDeleted (const QObject *caller) const |
virtual QString | debugName () const |
virtual void | addSourceItem (QQuickItem *) |
virtual void | removeSourceItem (QQuickItem *) |
|
static QQuickTextFieldPrivate * | get (QQuickTextField *item) |
static QQuickTextInputPrivate * | get (QQuickTextInput *t) |
static QQuickItemPrivate * | get (QQuickItem *item) |
static const QQuickItemPrivate * | get (const QQuickItem *item) |
static void | data_append (QQmlListProperty< QObject > *, QObject *) |
static qsizetype | data_count (QQmlListProperty< QObject > *) |
| \qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
|
static QObject * | data_at (QQmlListProperty< QObject > *, qsizetype) |
static void | data_clear (QQmlListProperty< QObject > *) |
static void | data_removeLast (QQmlListProperty< QObject > *) |
static QObject * | resources_at (QQmlListProperty< QObject > *, qsizetype) |
static void | resources_append (QQmlListProperty< QObject > *, QObject *) |
static qsizetype | resources_count (QQmlListProperty< QObject > *) |
static void | resources_clear (QQmlListProperty< QObject > *) |
static void | resources_removeLast (QQmlListProperty< QObject > *) |
static void | children_append (QQmlListProperty< QQuickItem > *, QQuickItem *) |
static qsizetype | children_count (QQmlListProperty< QQuickItem > *) |
static QQuickItem * | children_at (QQmlListProperty< QQuickItem > *, qsizetype) |
static void | children_clear (QQmlListProperty< QQuickItem > *) |
static void | children_removeLast (QQmlListProperty< QQuickItem > *) |
static qsizetype | visibleChildren_count (QQmlListProperty< QQuickItem > *prop) |
static QQuickItem * | visibleChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index) |
static qsizetype | transform_count (QQmlListProperty< QQuickTransform > *list) |
static void | transform_append (QQmlListProperty< QQuickTransform > *list, QQuickTransform *) |
static QQuickTransform * | transform_at (QQmlListProperty< QQuickTransform > *list, qsizetype) |
static void | transform_clear (QQmlListProperty< QQuickTransform > *list) |
static bool | focusNextPrev (QQuickItem *item, bool forward) |
| QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
|
static QQuickItem * | nextTabChildItem (const QQuickItem *item, int start) |
static QQuickItem * | prevTabChildItem (const QQuickItem *item, int start) |
static QQuickItem * | nextPrevItemInTabFocusChain (QQuickItem *item, bool forward, bool wrap=true) |
static bool | canAcceptTabFocus (QQuickItem *item) |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
QQuickTextFieldPrivate::QQuickTextFieldPrivate |
( |
| ) |
|
Single-line text input field.
\qmltype TextField
\inherits TextInput
! \nativetype QQuickTextField \inqmlmodule QtQuick.Controls
- Since
- 5.7
TextField is a single line text editor. TextField extends TextInput with a \l {placeholderText}{placeholder text} functionality, and adds decoration.
\table \row
- A text field in its normal state. \row
- A text field that has active focus. \row
- A text field that is disabled. \endtable
TextField {
placeholderText: qsTr("Enter name")
}
- See also
- TextArea, {Customizing TextField}, {Input Controls}
\qmlsignal QtQuick.Controls::TextField::pressAndHold(MouseEvent event)
This signal is emitted when there is a long press (the delay depends on the platform plugin). The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
- See also
- pressed, released
\qmlsignal QtQuick.Controls::TextField::pressed(MouseEvent event)
- Since
- QtQuick.Controls 2.1 (Qt 5.8)
This signal is emitted when the text field is pressed by the user. The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
- See also
- released, pressAndHold
\qmlsignal QtQuick.Controls::TextField::released(MouseEvent event)
- Since
- QtQuick.Controls 2.1 (Qt 5.8)
This signal is emitted when the text field is released by the user. The event parameter provides information about the release, including the x and y coordinates of the press, and which button is pressed.
- See also
- pressed, pressAndHold
Definition at line 87 of file qquicktextfield.cpp.