PDA

View Full Version : Thread-GUI



Viper666
6th August 2012, 10:46
I'm beginner in threads with GUI i make simple browser and a i want loading pages in new Threads but i don' know how i can give WebView to thread or how it make else
Thanks

mvuori
6th August 2012, 14:52
I believe that the one described here is the only practical solution to loadin pages in "background":
http://stackoverflow.com/questions/3060171/how-to-load-page-in-the-background-in-qwebkit

Viper666
6th August 2012, 16:16
I want loading in other thread. Do you know what is a thread and why i want use thread?

yeye_olive
6th August 2012, 17:41
I want loading in other thread. Do you know what is a thread and why i want use thread?
The material linked in mvuori's reply suggests that QtWebkit's API does not offer a way to isolate that part of HTML rendering not directly related to painting into a widget. Therefore all the rendering seemingly has to be done in the main thread (since, as you probably know, no widget manipulations are allowed outside the main thread).

Viper666
6th August 2012, 18:28
So i can't loading... in my thread right? So the inevitable slowdown when the user open a lot of tabs or exist some other way?

Viper666
9th August 2012, 21:07
pls is some way how do it?