PDA

View Full Version : Qt based HTML editor.



William Wilson
11th August 2007, 19:19
I need to provide an HTML editor from my Qt application. The UI will look something similar to the HTML editor that's displayed on this web site while posting a new thread. This seems to be a general purpose component - has a UI and it will return HTML text at the end. Someone may have already written or readily available to buy?
Thank you for you help.

marcel
11th August 2007, 19:36
You mean a WYSIWYG editor?

Not really hard to do. Shouldn't take you more than at most 2 days, especially if you do it with Qt.

I suggest using a QTextEdit & QTextDocument for the UI.

As a sample you can take a look at this(it is web based): http://www.openwebware.com/products/openwysiwyg/download.shtml

Regards.

William Wilson
11th August 2007, 19:53
Yes, WYSIWYG but without embedding any browser controls and only using Qt classes.
Thank you.

elcuco
11th August 2007, 21:20
QTextEdit is usable more or less. I produces crappy HTML, but as long as you don't care about the code (only the output seen on screen) it's ok.

patrik08
12th August 2007, 10:26
QTextEdit is usable more or less. I produces crappy HTML, but as long as you don't care about the code (only the output seen on screen) it's ok.



I have write one XHTML+Wysiwyg + inline edit image ....
on top 20 download from www.qt-apps.org
http://www.qt-apps.org/content/show.php/XHTML+Wysiwyg+Qeditor?content=59493

on sf.net the same....
https://sourceforge.net/projects/wysiwyg-edit/

If you like the xsl-fo format && the xhtml div (floating top.left) i have begin write a
xsl-fo editor from the same source as QGraphicsScene + QGraphicsTextItem
http://ppk.ciz.ch/qt_c++/apache_fop_format/

If i found more sample or wiki from QGraphicsScene + QGraphicsTextItem i can continue... to build floating Rich Text element rotate ecc... only xsl-fo can handle floating element + rotate.. html only have div top , left... and not rotate...
the QGraphicsTextItem is a hard work to become the Rich Text on same structure as QTextBrowser or QTextEdit .
The basic is QTextDocument, but this class on QGraphicsTextItem, QTextBrowser, QTextEdit it appears do not have the same editable result...


other projekt to to watch is http://sourceforge.net/projects/qxsl-fo/ http://qxsl-fo.svn.sourceforge.net/viewvc/qxsl-fo/

the doc xsl-fo from tag is http://www.zvon.org/xxl/xslfoReference/Output/index.html

William Wilson
12th August 2007, 19:58
This looks good. Thanks.