QtWebkit multithreading
-
-
[quote author="ananya" date="1314020743"]I am passing a new instance of QWebPage to each thread
[/quote]I just can emphasize what peppe wrote:
[quote author="peppe" date="1314019276"]QtWebkit classes are GUI classes and as such they are meant to be used from the main thread only.[/quote]
So, you must not move the web page to another thread.
-
[quote author="Volker" date="1314056869"]All you can do is running multiple threads that collect the data (HTML pages) and send that to the QWebPage instances in the main thread.[/quote]
that wont really serve my purpose of generating images in parallel
[quote author="peppe" date="1314023870"]It's not possible with Qt. Can't you just run multiple processes?[/quote]
will try to run it as a process..and get back
-
[quote author="ananya" date="1314062413"]
[quote author="Volker" date="1314056869"]All you can do is running multiple threads that collect the data (HTML pages) and send that to the QWebPage instances in the main thread.[/quote]that wont really serve my purpose of generating images in parallel
[quote author="peppe" date="1314023870"]It's not possible with Qt. Can't you just run multiple processes?[/quote]
will try to run it as a process..and get back
[/quote]Suppose i use Callable instead of Runnable threads
Is it possible to initialize a new QApplication within each callable's call...when i'm trying this only the first callable runs..the others crash