I have html in a QString, what widget can I use to display it? (QWebView is not necessary as I dont access Internet)
+1
A:
The QWebView class provides a widget that is used to view and edit web documents.
In Qt QWebView
is the widget that renders pages for you - if you don't need the networking features it provides, simply don't use them.
Georg Fritzsche
2010-04-25 19:16:57
nothing lighter? Size of my application is critical...
Regof
2010-04-25 19:42:55
@Regof: No, if you need web content rendering you need to use the QtWebKit module.
Georg Fritzsche
2010-04-25 22:25:14
that is not nessecarily true, see my answer below -- you could potentially use a `QTextEdit` depending on what your HTML is.
swanson
2010-04-25 23:07:43
@swanson: Ok, i didn't think the OP was ok with displaying subsets of old HTML versions.
Georg Fritzsche
2010-04-25 23:41:36
+3
A:
Depending on what HTML tags you are using, you might be able to get away with a QTextEdit
. It has support for most of HTML, including tables and images. Take a look at the docs and see if it fits your particular needs.
If you need something more advanced, then you will have to use the widgets in QtWebKit
.
swanson
2010-04-25 23:06:41