Unsolved TextArea with QtRendering? [solved]
-
Not sure if it's the intended effect. As I was working in my app noticed that while Text type remained pretty smooth the TextArea type would fallback to native rendering (apparently) so I'm not sure if it's working as intended or if there's a way to turn Qt's way of font rendering.
Difference
http://i.imgur.com/rhardl0.png
Any suggestion is welcome, the final result is that I want the user to be able to select the text, highlight it, etc etc. The issue, while trivial, I just hope that it's just an isolated issue, and that TextArea will look fine in android/osx
-
To answer my own question (had more or less an idea on how to solve it just needed to put it in practice).
The right way to do it is just styling TextArea. Please refer to http://doc.qt.io/qt-5/qml-qtquick-controls-styles-textareastyle.html
The dirty way and not so recommended way as the inners of TextArea could change :
// Suppose we have a textarea TextArea { id: mytextarea Component.onCompleted: { mytextarea.__style.renderType = Text.QtRendering; } }