Results 1 to 2 of 2

Thread: Qt MultiThread Help

  1. #1

    Default Qt MultiThread Help

    Hi.
    I am a newbie of the Qt world and I am currently working on a program to develope a gui for a C++ application.

    The structure of the program is the following: 2 producer threads, with a different speed ( 1 produces data every 120ms, another after 250ms ), no synchronization

    I just finished the interface and i can see the real time data produced ( 2 sensors, 1 for each thread )

    the problem now is realted to consumer thread.. i created the signals and the slots but when i call the emit seems that no data is sent to the consumer thread...

    i used the connet command to link signal and slot but nothing happens.. the data to send is and INT array..


    Any suggestion?
    thanks in advance

  2. #2
    Join Date
    May 2012
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt MultiThread Help

    I think you have to register that array in qRegisterMetaType; I did this a few weeks ago for a similar problem:

    http://doc.qt.nokia.com/4.7-snapshot...gisterMetaType

Similar Threads

  1. multithread with Qhttp
    By k.qasempour in forum Newbie
    Replies: 2
    Last Post: 11th July 2012, 08:17
  2. A Web Proxy multithread
    By giusepped in forum Qt Programming
    Replies: 5
    Last Post: 2nd August 2011, 06:42
  3. I don't quite understand this multithread example
    By HelloDan in forum Qt Programming
    Replies: 2
    Last Post: 9th April 2009, 08:58
  4. about multithread
    By Pang in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2007, 18:06
  5. Help me about multithread!
    By vql in forum Newbie
    Replies: 19
    Last Post: 8th February 2007, 15:01

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.