[Qt-interest] Adding signal/slot connections in a loop
Cole, Derek
dcole at integrity-apps.com
Thu Jul 14 17:51:35 CEST 2011
hello,
I am trying to implement a producer-consumer queue system. In my producer, I have a loop that is generating the input data for the consumer. I plan on adding these input data to a queue. My question is - how do I make the producer notify the consumer that the queue now has stuff in it? I was thinking of also creating a QFutureWatcher in the loop(on the heap? or can I add multiple futures to a futurewatcher) and creating a connection ebtween that watcher and making the consumer the slot.
Is this the right way to go about this?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110714/9e1f95d4/attachment.html
More information about the Qt-interest-old
mailing list