Text item inside flickable flicks to show all of text but snaps back once mouse is released.
-
As in, it fails to continue to show the content at the new position once the mouse is released, making it worthless.
Flickable
{
Rectangle
{
width: 50
height: 30
Text
{
text: "A whole bunch of\ntext spanning\nmultiple lines\nwhere content size exceeds containing item\n but sadly ineffective\nin permitting the text to be repositioned\nto show the text at the bottom\nor on the right\nwithout keeping the mouse button held down when flicking."
}
}
}Not a complete code segment, but more than enough for any programmer willing to read what is written to understand what the issue is.
-
Problem not solved, but identified. The contentHeight of the flickable region is set to the height returned by the bounding rect of the text. Seems FontMetrics.boundingRect does not take into account newline characters, so the returned width is over 15,000 pixels wide but the height is 20, the height of a single line at the designated font point size. Though even this obvious bug in QML does not explain why even trying to scroll right would snap back to the origin when the mouse was release.