[Qt-interest] using QWebView as a delegate

Girish Ramakrishnan girish at forwardbias.in
Wed Jun 1 06:32:39 CEST 2011


QWebView is a QWidget, so you can use QWidget::render(). You can also
use webView->mainFrame()->render().

Note that if your intention is to just use it for painting, you can
just use QWebPage. See
http://doc.qt.nokia.com/main-snapshot/qwebpage.html ("Using QWebPage
in a Widget-less Environment")

Girish

On Mon, May 30, 2011 at 9:31 PM, Eckhard Jokisch
<e.jokisch at orange-moon.de> wrote:
> Hi,
> in my TreeView  need to display html strings.
>
> So I started writing a WebViewDelegate deriving it from the StarDelegate
> example. But I am stuck with the WebViewDelegate::paint() as QWebView does not
> provide a paint() member.
>
> Can someone please assist me in what I'll have to implement in the
> WebViewDelegate::paint() member?
>
> Kind regards
>
> Eckhard
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list