AppTextEdit

A multi-line TextEdit with a given placeholder text More...

Import Statement: import VPlayApps 1.0
Inherits:

TextEdit

Properties

Detailed Description

AppTextEdit is an extension of the basic QML TextEdit for getting multi-line text input from the user. For single-line text input, use AppTextInput.

It adds the ability to display a placeholder text, which is visible as long as the text field is empty. The placeholder text's color and text can be configured using placeholderText and placeholderColor properties.

Property Documentation

cursorColor : color

The color of the cursor that marks the current position in the text input. Matches Theme::inputCursorColor by default.

This QML property was introduced in V-Play 2.7.0.


cursorInView : bool

This property is used to ensure the text cursor stays on screen, for example when adding new lines at the bottom of the screen. This works by moving the surrounding flickable element in the opposite direction, to avoid the cursor leaving the screen. You must set the flickable property to use this feature!

This QML property was introduced in V-Play 2.17.1.

See also flickable, cursorInViewTopPadding, and cursorInViewBottomPadding.


cursorInViewBottomPadding : real

The bottom padding for keeping the text cursor on screen. If the cursor reaches the bottom of the AppTextEdit + this padding, the flickable will scroll to keep the cursor visible.

This QML property was introduced in V-Play 2.17.1.

See also cursorInView and cursorInViewTopPadding.


cursorInViewTopPadding : real

The top padding for keeping the text cursor on screen. If the cursor reaches the top of the AppTextEdit + this padding, the flickable will scroll to keep the cursor visible.

This QML property was introduced in V-Play 2.17.1.

See also cursorInView and cursorInViewBottomPadding.


flickable : Flickable

Set the surrounding Flickable to use cursorInView.

This QML property was introduced in V-Play 2.17.1.

See also cursorInView.


fontSize : int

Set a device-independent font size. It uses the App::sp() function internally. If you set font.pixelSize directly, this property will have no effect.

By default, the fontSize is 18 on Android and 17 on all other platforms.

This QML property was introduced in V-Play 2.17.0.


placeholderColor : color

The color for the placeholder text.

The default value is Theme::placeholderTextColor.


placeholderText : string

The text to display as placeholder, when the text field is empty.


Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support