[Qt-interest] QWebPage in a thread
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Tue Jun 29 02:25:06 CEST 2010
Hi,
Sorry for not responding earlier...
See the QWebPage doc for using it without widgets (and thus in other threads).
You can only use QPixmaps in the main GUI thread. Try rendering to a QImage instead, which should work in any thread.
Tony.
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Juhana Jauhiainen
Sent: Friday, 25 June 2010 04:41
To: Qt Interest
Subject: [Qt-interest] QWebPage in a thread
Hi, does anyone have experience using QWebPage in a threaded environment?
Currently I'm loading HTML-content into a QWebPage and rendering parts of it to QPixmaps using QWebFrame's render-function. I would like to make this threaded since it takes some time especially with large HTML-pages. I'm wondering if this is possible or if anyone has a better way of doing this?
Am I right assuming that a QWebPage can't be created outside the GUI-thread?
PS. What I'm essentially doing is pagination of html-content.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100629/7ab8fed6/attachment.html
More information about the Qt-interest-old
mailing list