Results 1 to 5 of 5

Thread: how to emit from thread

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    15
    Thanked 16 Times in 15 Posts

    Default how to emit from thread

    emits included in customized thread inside my program does not work. it seems my thread has no communication with the main UI thread. in c# we have thread dispatcher to handle this. what about QT?

    Qt Code:
    1. void myThread::run(){
    2.  
    3. while(1)
    4. {
    5. //do something
    6. emit display("show the result"); //NOT WORKING, THOUGH CONNECTED
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by saman_artorious; 20th April 2013 at 14:24.

Similar Threads

  1. Emit Signal to Thread and additional Forward
    By CLRS530 in forum Qt Programming
    Replies: 0
    Last Post: 23rd May 2010, 19:45
  2. Emit signal from thread
    By sisco in forum Newbie
    Replies: 2
    Last Post: 26th November 2009, 13:32
  3. emit is slow in Thread?
    By vishal.chauhan in forum Qt Programming
    Replies: 3
    Last Post: 2nd August 2007, 08:52
  4. QT emit/signaling thread-safe?
    By richy in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2006, 09:37
  5. Replies: 2
    Last Post: 6th January 2006, 21:15

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.