Results 1 to 2 of 2

Thread: Search HTML in non-gui thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Search HTML in non-gui thread

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Search HTML in non-gui thread

    Either clone the document and push it to another thread or extract the text and pass it to the other thread as a string.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. file search
    By Benjamin in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2009, 14:33
  2. QTreeView search
    By jpujolf in forum Qt Programming
    Replies: 6
    Last Post: 3rd March 2009, 06:43
  3. Search box?
    By sdfisher in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2007, 18:37

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
  •  
Qt is a trademark of The Qt Company.