Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate mouse wheel events using QTestLib [Qt5]

I am happily using QTestLib to write tests for my Qt5 widgets based UI. There has seemed to be no shortage of features and convenience functionality until now, when I tried to find a way to simulate mouse wheel events.

I have looked at the official documentation, and an official example but I can't seem to figure out how to go about simulating mouse wheel events.

Does this not exist? Or am I missing something? How should I create dummy mouse wheel events using QTestLib?

like image 518
Lennart Rolland Avatar asked Jun 23 '18 00:06

Lennart Rolland


1 Answers

It has been 10 years, and I thought it would be a nice way to mark the occasion by formally submitting a feature request on the bug-tracker for Qt:

Behold QTBUG-71449.

like image 106
Lennart Rolland Avatar answered Sep 18 '22 13:09

Lennart Rolland