Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The depth slider jumps 3 ticks when using mouse wheel #23

Closed
EtlamGit opened this issue Oct 31, 2013 · 0 comments
Closed

The depth slider jumps 3 ticks when using mouse wheel #23

EtlamGit opened this issue Oct 31, 2013 · 0 comments

Comments

@EtlamGit
Copy link
Collaborator

You are creating the QSlider(Qt::Horizontal) in labelledslider.cpp

But you are not implementing an own event handler to monitor QWheelEvent. Therefore the slider implements the automatic mouse scroll wheel handling, which is 3 ticks for most people. Inside that handler you have to divide event->data by 120 to get the correct value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant