Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0
-
None
-
iOS7 emulator, iPhone, Nexus 5
-
-
I0de2cb65c7c59d54365172b9233a5aba0f067ff5
Description
1. Tap into text with placeholder
Expected
2. Cursor and keyboard appear, placeholder is shown
Actual
2. Cursor and keyboard appear, placeholder disappears
3. Interestingly if you click more, sometimes, but not always it appears again
Looking at TextField code, it seems to be wrong calculation of opacity in its placeholderTextComponent - possibly wrong detection of textInput.inputMethodComposing
On desktop same things work fine, it's iOS-specific issue
Steps for Android
1. Run placeholder.qml
2. Tap TextField
3. Type Q
4. Press backspace
Expected:
Placeholder text to appear
Actual:
No placeholder until input method is reset (by pressing input again etc)
Cause is probably same as on iOS see TextField.
When inputMethodComposing textInput.text.length does not change until inputMethod.commit()/reset(), maybe textInput.displayText.length would work better.
Attachments
For Gerrit Dashboard: QTBUG-40534 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97726,3 | Placeholder text in TextField disappears on TextField tap. | 5.4 | qt/qtquickcontrols | Status: MERGED | +2 | 0 |