Skip to content

Conversation

@hellowilman
Copy link

I have add one signal to RangeSlider, which will emit when sliding finished.

  • slide the handler
  • click the axis
  • misc

it is implemented when the widget's mouseReleaseEvent is called.

wilman added 2 commits November 11, 2019 17:36
when sliding finished (by click / dragging the slider, etc.)
@ThisIsClark
Copy link
Owner

Have you ever verified it?

@hellowilman
Copy link
Author

Yes. I have the testing code, but I do not upload the testing code since i may override some other codes.
I will upload the testing code in next commit later soon. Thanks.

@ThisIsClark
Copy link
Owner

If you need to handle something when sliding finish, why not handle it in mouseReleaseEvent directly.
What's the difference between handling the things in mouseReleaseEvent and handling the things in the bound slot of slidingFinished signal.

@hellowilman
Copy link
Author

If you need to handle something when sliding finish, why not handle it in mouseReleaseEvent directly.
What's the difference between handling the things in mouseReleaseEvent and handling the things in the bound slot of slidingFinished signal.

Make it more QT style, which maybe easy to understand.
In fact, it is implemented via mouseReleaseEvent in the RangeSlider.

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

Successfully merging this pull request may close these issues.

2 participants