Commit f7202424 authored by Venugopal Shivashankar's avatar Venugopal Shivashankar
Browse files

Example: Use TextInput's displayText property instead of length


The replace Text item that is overlayed on the TextInput, behaves
like the TextField.placeholderText property. The opacity of the item
varies based on whether the TextInput has any text or not. Using the
length property to adjust the opacity fails on platforms such as
Android where the length is not updated until the text is committed
(i.e. until you hit the [ENTER] key). Whereas the displayText
property is updated when you key in text, so it is ideal to use the
length of the displayText than the length property itself.

Change-Id: I678e5db5e5d5027e4aae816b6620095c68138eb7
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@qt.io>
parent 9d2169a2
Showing with 1 addition and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment