Results 1 to 6 of 6

Thread: Qt based HTML editor.

  1. #1
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Qt based HTML editor.

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt based HTML editor.

    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/...download.shtml

    Regards.

  3. #3
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt based HTML editor.

    Yes, WYSIWYG but without embedding any browser controls and only using Qt classes.
    Thank you.

  4. #4
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt based HTML editor.

    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.

  5. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt based HTML editor.

    Quote Originally Posted by elcuco View Post
    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....?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/xslfoReferen...put/index.html

  6. The following user says thank you to patrik08 for this useful post:

    William Wilson (12th August 2007)

  7. #6
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile Re: Qt based HTML editor.

    This looks good. Thanks.

Similar Threads

  1. Help using the QTreeWidget persistent editor.
    By Billy Lee Black in forum Qt Programming
    Replies: 13
    Last Post: 18th July 2007, 19:59
  2. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 21:51
  3. Model/View: Custom Persistent Editor
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2007, 14:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.