Priority: P3: Somewhat important
Affects Version/s: 5.1.0 Beta 1
Fix Version/s: None
Component/s: Quick: Controls 1
Environment:Qt MinGW 32-bit
Windows 7 64-bit
Steps to reproduce:
1. Run qtquickcontrols/examples/quick/controls/text (one of your examples);
2. Click a word in the paragraph starting with "If you are viewing this document" three times to select the whole paragraph.
The font of the selected paragraph becomes as large (16) as the font of the following heading of "Font and Paragraph Styles".
If the binding at the bottom of main.qml:
is changed to:
selectionEnd: textArea.selectionEnd > 0 ? textArea.selectionEnd – 1 : 0
the issue seems to be fixed, that is, it cannot be reproduced any more but it's not clear if this workaround would not cause other problems.