stop flickable item from exceeding boundaries in qml

2.1k Views Asked by At

This question is regarding QtQuick 1.1, QML, Qt 4.5

I am making a windows style scroll bar for showing text area.

Using Flickable with TextEdit inside, and simple rectangle parts for scrollbar.

Problem is When I flick the text, it shows contents outside the text also

For example see the scrollbar example and picture attached below.

I don't want to show the area outside that image. Stop if reach the border.

Also is there any in-built scrollbar module in QtQuick 1.1

Thanks!!

outside of image boundary is shown

1

There are 1 best solutions below

0
HariP On

It is possible to disable flicking in horizontal direction using

flickableItem.flickableDirection: Flickable.VerticalFlick

inside ScrollView block