Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Html editing issue

    Qt WebKit
    4
    4
    1057
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • appollosputnik
      appollosputnik Banned last edited by

      I want to edit html. I tried with QTexEdit but QTextEdit doesn't support html editing fully. Please tell me anyother way of editing html ? Please help.

      1 Reply Last reply Reply Quote 0
      • G
        guru last edited by

        try to use Qsethtml( ) function for set html..

        1 Reply Last reply Reply Quote 0
        • raven-worx
          raven-worx Moderators last edited by

          [quote author="appollosputnik" date="1372581553"]I want to edit html. I tried with QTexEdit but QTextEdit doesn't support html editing fully. Please tell me anyother way of editing html ? Please help.[/quote]
          This isn't that easy (depending on your requirements).

          But you can use a QWebView and do this:
          @
          myWebView->page()->setContentEditable(true);
          @
          Additionally you can connect some buttons to a toolbar using "QWebView's actions":http://qt-project.org/doc/qt-4.8/qwebview.html#pageAction.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply Reply Quote 0
          • K
            KA51O last edited by

            Do you want to edit the HTML source code or do you want to edit the page as it is displayed in a browser ?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post