On 04/04/18 09:33, Ola Røer Thorsen wrote:
is there some nice trick to make a QTimer trigger at 30 Hz? This interval can't be expressed properly in milliseconds (1000/30 = 33.333333...)

My use case is for Linux only so I'd be happy with some Linux-specific way of triggering a signal at 30 Hz too. It won't have to be very precise for each trigger as long as the average frequency is 30 Hz.
Not sure (and I haven't tried it myself), but maybe this class can help:
https://github.com/rsmz/qnanotimer

HTH, René
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to