PDA

View Full Version : Qt and RTI DDS



SiddhantR
24th July 2013, 13:51
Hi,
I am making a GUI where I have multiple forms on QStackedWIdget. Now I want the data in these forms to be updated as and when available. The data will be recieved through RTI DDS. Can some one suggest me some examples or links where the GUI data is updated from Non GUI thread.
Thank You.

ChrisW67
25th July 2013, 23:21
You have two options, only one is unique to Qt:

Directly updating shared data with mutex protection on shared data structures
Emitting signals from one thread to slots on another: carrying copies of data between threads.

The first is generic programming/C++. The second is demonstrated by every Qt example that uses signals and slots.