We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Bug: can't select text from Silica TextField if it's readonly [answered]

asked 2014-01-03 14:04:02 +0200

Venemo gravatar image

updated 2014-01-03 14:09:00 +0200

Seems that text selection doesn't work when a TextField is readonly.
I have the following code:

TextField {
    text: "hello world"
    readOnly: true
    background: Item {
        anchors.fill: parent
    }
}

And long-pressing the text doesn't do anything at all. As soon as I set readOnly to false it starts working.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by JSEHV
close date 2016-02-08 14:23:21.625221

Comments

2 Answers

Sort by » oldest newest most voted
2

answered 2014-01-03 14:28:18 +0200

Joona Petrell gravatar image

By default read-only text fields are not focusable. To enable copying and magnifier you can make the field focusable with property assignment TextField { focusOnClick: true }.

edit flag offensive delete publish link more
0

answered 2014-01-03 14:16:24 +0200

Robin Burchell _ w00t gravatar image

Thanks for the report. We're aware of it now :)

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2014-01-03 14:04:02 +0200

Seen: 144 times

Last updated: Jan 03 '14