[Qt-interest] QWebPage in a thread
Jason H
scorp1us at yahoo.com
Mon Jun 28 21:25:59 CEST 2010
You might actually be able to do this.
QWebPage and its like are only derived from QObject. You'd have to create the painter for the system from a QPixmap, which is owned by the read. You can then emit the pixmap(s) when you are done and display them.
I beleive the limitation is that you cannot access the screen (the paint device for it) from another thread.
I think this topic came up a few months ago on this list, search on QWebPage...
________________________________
From: Juhana Jauhiainen <juhana.jauhiainen at gmail.com>
To: Qt Interest <qt-interest at trolltech.com>
Sent: Thu, June 24, 2010 2:40:51 PM
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/20100628/e570ab2f/attachment.html
More information about the Qt-interest-old
mailing list