Html editing issue
-
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.
-
wrote on 4 Jul 2013, 13:02 last edited by
try to use Qsethtml( ) function for set html..
-
[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. -
wrote on 5 Jul 2013, 11:05 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/4