Results 1 to 2 of 2

Thread: how to get output of QThread to main ui

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question how to get output of QThread to main ui

    i had a button .on clicking that button i am calling a CThread.cpp file in which i implemented QThread which is having some functionality, suppose if the functionality is finding ".txt" files in system. suppose if i got 5 files , i stored it in QStringList .Now i want to accesses that QStringlist in main ui and populate the content of QStringlist in main ui.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to get output of QThread to main ui

    Use signals and slots. After finding a file send signal with file name as parameter.

Similar Threads

  1. how to include QThread for main form
    By narlapavan in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2012, 14:50
  2. QThread sends signal to main thread immediatly
    By BIllNo123 in forum Newbie
    Replies: 7
    Last Post: 27th August 2010, 10:32
  3. QThread Signal Not Received By Main Thread Slot
    By EF2008 in forum Qt Programming
    Replies: 7
    Last Post: 4th June 2010, 08:06
  4. Determine if QThread::currentThread is main thread?
    By chaoticbob in forum Qt Programming
    Replies: 2
    Last Post: 17th December 2008, 06:26
  5. Replies: 4
    Last Post: 10th May 2006, 22: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.