PDA

View Full Version : Search HTML in non-gui thread



mirag
19th March 2010, 14:30
Hi,

I would like to scan ( search ) html files for particular string (which is displayed only on page - so all
html tag or not visible parts should not be included in results). Until now I've been doing this with
QTextDocument. But unfortunately it's a "Gui" object which cannot be used outside gui thread.
So the question is how to search through html files in not gui threads?

Thx in advance,

mirag

wysota
19th March 2010, 14:38
Either clone the document and push it to another thread or extract the text and pass it to the other thread as a string.