Results 1 to 1 of 1

Thread: Render QWebPage in thread

  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Render QWebPage in thread

    Hi, I have a bunch of html pages that I want to render in separate threads. I looked at the documentation and found that QWebPage is a QObject, so it shouldn't generate a "cannot paint qwidget outside gui thread" warning.
    But when I create the QWebpage object, I get the error, and the reason seams to be an internal class "RenderThemeQt", which creates a QPushButton.
    I don't need any pushbutton because I wanted to use the QWebpage only to render to an image, so is there any way to do this?
    I have already tried QTextDocument. This would work, but is a little limited in its HTML subset.

    Ginsengelf

    PS: Qt 4.7
    Last edited by Ginsengelf; 20th July 2015 at 08:43. Reason: fixed link

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2015, 09:06
  2. QGLWidget and QThread, how to render in separate thread?
    By DIMEDROLL in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2010, 20:56
  3. Replies: 1
    Last Post: 3rd June 2010, 03:43
  4. Render from a thread into a pixmap?
    By rage in forum Qt Programming
    Replies: 12
    Last Post: 11th May 2009, 11:14
  5. QGraphicsScene render thread
    By nicolas1 in forum Qt Programming
    Replies: 7
    Last Post: 26th October 2008, 13:57

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.