-
Notifications
You must be signed in to change notification settings - Fork 1
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
Scrolling with an attached Scrollbar seems glitchy #1
Comments
can you provide some code snipped so I can take a look? |
here it is
|
When taking our example and just adding the ScrollBar {} i don't see any performance degragation. I can scroll with the bar, click around and it just works smooth as expected. Things that happen when you click on the bar and/or scroll with it:
To look for the bottleneck you:
|
Thanks for those hints. I had a closer look to find the bottleneck with the help of the QML profiler and found that the Component.onCompleted is taking more time to complete. The actual line where it gets really stuck is the Line :88 where it assigns the color of the Rectangles in the Grid
precisely the third parameter |
yep. true. Well the example is meant to be a bit extreme in that case, so, try to assign color later by simply adding a timer (i.e. with a randomized intervall). I may adjust the example along this feedback to demonstrate this option. |
@jebos Thanks for the nice blog post and the example.
I played around a bit with this example and found the scrolling seems not working correctly when I use the attached ScrollBar.
It does not scroll smoothly if we use the Scrollbar.
The text was updated successfully, but these errors were encountered: