Results 1 to 3 of 3

Thread: QThread interthread communication

  1. #1
    Join Date
    Jun 2008
    Posts
    26
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QThread interthread communication

    Hi!

    i'm having a problem with my threaded application - actually it is rather a question... Is it possible to let threads intercommunicate? i mean, i'm having a mainthread and a QThread (in which some stuff is done). That works pretty well, but how to connect them in a way, that both threads can communicate with each other (without calling system functions)? i hope, you can help me.

    best wishes,

    sebastian

  2. #2
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QThread interthread communication

    in main-thread you can change parameters in qthread to control qthread activity, use signal in qthread to communicate with main-thread.

  3. The following user says thank you to Sheng for this useful post:

    hunsrus (10th March 2009)

  4. #3
    Join Date
    Jun 2008
    Posts
    26
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QThread interthread communication

    thank you very much,
    that helped a lot

Similar Threads

  1. QThread and QTcpSocket
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2008, 13:06
  2. QThread communication with GUI
    By ldiamond in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2008, 00:00
  3. Communication between QThread and Yes/No QMessageBox?
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 11
    Last Post: 25th January 2007, 03:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.