S
S
Sergey Pozdnyakov2016-02-25 01:02:15
Qt
Sergey Pozdnyakov, 2016-02-25 01:02:15

How to make the correct display of the slider in the ScrollView?

The ScrollView contains a ListView containing categories with subcategories. When you click on a category, a list with subcategories expands. While the expanded list is in the screen area, everything is fine, but if there are more subcategories, then the slider changes size as it scrolls. Starting from the smallest while we are at the beginning of the list of subcategories and up to the size when all categories are collapsed. How can this nonsense be defeated? As I understand it, the scroll calculates only part of the area, which is why the size of the slider changes.
ScrollView Code

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Pozdnyakov, 2016-02-26
@Afinogen

In general, I took this scroll and added one function to it, into which the height of the content is passed. Inside the scroll, not flickable.contentHeight is used, but my value. Now everything works correctly

J
Jacob E, 2016-02-25
@Zifix

ScrollView contains ListView

Is this investment really necessary? How is the list with subcategories implemented?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question