[Development] Rich Text Editor using QML

Michael Zanetti michael.zanetti at canonical.com
Fri Nov 14 10:21:39 CET 2014


I've been working on that last week for an Evernote client for Ubuntu 
Phone. Seems to work reasonably well.

Here's the diff of just the edit mode:

Here's the complete app code:

Note that the edit mode in here is not 100% complete yet (doesn't 
support complex formatting yet - you'll understand what that is while 
working on it or reading the review comments) but I'm confident it can 
be achieved nicely this way. Here's a screenshot of what it can do so 
far: http://i.imgur.com/dejnDU7.png

Long story, short, yes, you are in the right direction, at least I 
solved it the same way.

Hope this helps,

On 14.11.2014 10:06, Yann Levreau wrote:
> Hi everybody!
> I am starting a new project and I am looking for some advice about 
> what kind of Qt/QML controls I should use.
> The purpose is to develop an rich text editor using QML. Basically I 
> am going to develop IDE features.
> Until now I have tried the TextArea QML Control. Using this control I 
> get a
> QQuickTextDocumentandQTextDocumenton the C++ side.
> Am I in the right direction ? Is there any limitations using this 
> control that I should know ?
> Or maybe there is better way to implement this (using QWebView or a 
> simple QTextEdit, ... ).
> Thanks a lot !
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141114/4645a8c8/attachment.html>

More information about the Development mailing list