pg.QtCore.QTimer callback function delayed

103 views
Skip to first unread message

kiran gopalan

unread,
Feb 6, 2015, 8:28:46 AM2/6/15
to pyqt...@googlegroups.com
Hi,

I am using pg.QtCore.QTimer to update a grid of plots. I got help from this group to maximize a plot when clicked on it.

All theses plots are updated in realtime by the callback function for the QTimer.

When the window is showing full grid, the timer callbacl is not getting fired at the set time. But when I click on a sub-plot and maximize it, the timer callback fires properly.

I have confirmed that the callback function's processing time is less that the timer period and it is same when the window is in grid mode and maximized mode.

Anyone know why QTimer is behaving this way?

Kiran G

Luke Campagnola

unread,
Feb 6, 2015, 12:26:28 PM2/6/15
to pyqt...@googlegroups.com
The processing time required to repaint the view is probably not included in your callback--usually the Qt event loop initiates repaints on its own. 

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/008cefb5-485b-48c8-a3a4-87e2ec6d4a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kiran gopalan

unread,
Feb 6, 2015, 12:33:23 PM2/6/15
to pyqt...@googlegroups.com
Is there a workaround or an alterntive? Is using a third party timer (pyev) make it better? Or this has nothing to do with the timer?

Luke Campagnola

unread,
Feb 6, 2015, 12:47:02 PM2/6/15
to pyqt...@googlegroups.com
I don't think the timer is the issue; most likely the combination of your callback and the repaint are longer than the timer interval.

Reply all
Reply to author
Forward
0 new messages