Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[Solved] Background for Text in QML

$
0
0
Ok, how about using the TextEdit controller instead of Text: http://qt-project.org/doc/qt-5/qml-qtquick-textedit.html#selectionColor-prop Then you could set selectionColor and set selectionStart = 0 and selectionEnd = text.length. Have not tried it, but it might work. Thanks! it looks exactly as I need it, now I only need to block all mouse interaction, I don’t want to put a mouse area filling this, do you have any suggestions on what else is missing? I have this and selection is still lost when I click on it         readOnly: true         persistentSelection: true         selectByKeyboard: false         cursorVisible: false         activeFocusOnPress: false

Viewing all articles
Browse latest Browse all 4972

Trending Articles