[Qt-qml] Basic rich text editing in QML

Cornelius Hald hald at icandy.de
Thu Jun 23 19:06:48 CEST 2011


Hi guys,

I'm trying to do basic rich text editing in QML. Basically I'd like to
do a simple text editor where you, for example, can select text and mark
it as bold or italic.

So far I've looked at TextEdit, but it looks like I have to copy the
value of the 'text' property, add markup, and write it back. That
doesn't really look like a solution.

Is there maybe another text widget in one of the 'components' projects?
I couldn't find one so far.

Also I've heard there might come a more feature-full text widget in QML
2.0. Is that true? Is there some code already available?

I'm also willing to use some C++, so would it make sense to inherit
TextEdit and build on top of that? Or build on top of anything else?

I'm looking forward to your suggestions.

Thanks!
Conny




More information about the Qt-qml mailing list