[Qt-qml] Extending QML Using QPlainTextEdit

Benoît HERVIER khertan at khertan.net
Fri Jun 24 09:40:15 CEST 2011


Morning all !

Due to some limitation on QML TextEdit for my use, i m trying to
extend QML by using QPlainTextEdit with syntax highlighter. (I'm
trying to rewrite KhtEditor (http://khertan.net/khteditor) with QML)
I got a partial success, i ve successfully display my text with syntax
highlighting in QML, but none user interaction is possible. I ve
probably miss something.

I ve register my subclass of QTextEdit and QDeclarativeItem, with
qmlRegisterType
Implemented sizeHint and Paint methods.

So i think i should bind somewhere the event receive by QML to my
QTextEdit, but how ? any advice ?

Thx,
Regards,
-- 
Benoît HERVIER, Khertan Software - http://khertan.net/


More information about the Qt-qml mailing list