| Subject: | Re: [Qt-interest] QWebPage in a thread |
|---|---|
| From: | Jason H |
| Date: | Mon, 28 Jun 2010 17:58:42 -0700 PDT |
|
I am not sure this is right. I believe I have used QPixmaps in non-main threads before. I think you just have to supply the device metrics (bpp, ARGB) rather than using the screen's metrics. QImage is device-independent. But if you choose your QPixmaps metrics to match you display, you should be optimized for drawing. From: Tony Rietwyk <tony.rietwyk@xxxxxxxxxxxxxxxx> To: qt-interest@xxxxxxxxxxxxx Sent: Mon, June 28, 2010 8:25:06 PM Subject: Re: [Qt-interest] QWebPage in a thread 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.
_______________________________________________ Qt-interest mailing list Qt-interest@xxxxxxxxxxxxx http://lists.trolltech.com/mailman/listinfo/qt-interest |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Qt-interest] QWebPage in a thread, Tony Rietwyk |
|---|---|
| Next by Date: | [Qt-interest] QAxFactory linker issue, Santhosh Y |
| Previous by Thread: | Re: [Qt-interest] QWebPage in a thread, Tony Rietwyk |
| Next by Thread: | Re: [Qt-interest] QWebPage in a thread, Thiago Macieira |
| Indexes: | [Date] [Thread] [Top] [All Lists] |