I'm having a problem with QTimer and hope someone can set me straight. I've been through the posts and haven't found a similar situation.
I have a QMainWindow application that has 15 menu selections. Each of these menu selections starts a new QDialog widget that contains a QTableView with an associated data model. The responsibility of each of these dialog widgets is to update the model with data from a shared memory segment that is always changing.
Each dialog widget has a QTimer associated with it since I want to update the data at a couple of different time rates. Some are 1 sec others are .5 sec. When the widget is shown the timer is started and when the widget is minimized the timer is stopped.
The problem is that when I have several (5) of the widgets displayed (all these have 1 sec timers) some update at 1 sec, others update at odd intervals like 4, 6, 7, 9, (...etc) seconds.
Is there such a thing as too many timers in a QT application?
Could the timers be interferring with each other?
Is there a better (simpiler) approach that I'm missing?
Would it be better to start each of these dialogs in their own thread (thats a lot of threads)?
Any help/discussion would be helpful. Thanks in advance.
Bookmarks