bcollie
12th July 2011, 17:19
Hi,
I have an application that executes a calculation on QSpinBox::valueChanged.
This calculation takes around half a second to perform.
When a user clicks the step up button, two valueChanged events occur.
After some digging, this appears to be because the calculation takes a bit too long, causing the timer to fire. When valueChanged and the calc finishes, the spinbox receives a timerEvent followed by a mouseReleaseEvent.
Since the user did a simple click, so releasing the the mouse before the timer was due to fire, I see this as a qt bug. Surely qt should send events in chronological order, ie. mouseReleaseEvent followed by timerEvent.
Thanks
Bruce
I have an application that executes a calculation on QSpinBox::valueChanged.
This calculation takes around half a second to perform.
When a user clicks the step up button, two valueChanged events occur.
After some digging, this appears to be because the calculation takes a bit too long, causing the timer to fire. When valueChanged and the calc finishes, the spinbox receives a timerEvent followed by a mouseReleaseEvent.
Since the user did a simple click, so releasing the the mouse before the timer was due to fire, I see this as a qt bug. Surely qt should send events in chronological order, ie. mouseReleaseEvent followed by timerEvent.
Thanks
Bruce