Is it possible to make PageIndicator fit parent?
-
wrote on 7 Aug 2016, 18:18 last edited by
I am adding too much items in SwipeView and PageIndicator does not fit my windows. Can someone help me to avoid this? For example, make dots smaller, or replace PageIndicator on ScroolIndicator or make it look like ScroolIndicator?
-
wrote on 7 Aug 2016, 18:52 last edited by
We never thought someone would use PageIndicator for so many items that it wouldn't fit on the screen. :) Nevertheless, here's an untested (sorry, no access to a development environment right now) example snippet that shows how you might be able to use a ScrollIndicator:
ScrollIndicator { width: swipeView.width anchors.bottom: swipeView.bottom active: true orientation: Qt.Horizontal readonly property Flickable flickable: swipeView.contentItem size: flickable.visibleArea.widthRatio position: flickable.visibleArea.xPosition }
-
wrote on 8 Aug 2016, 14:01 last edited by
Thanks for reply, will try it out later. I am using it for swipable image preview area. Maybe there is better solution for this, I don't know. But it works well except of indicator.
-
We never thought someone would use PageIndicator for so many items that it wouldn't fit on the screen. :) Nevertheless, here's an untested (sorry, no access to a development environment right now) example snippet that shows how you might be able to use a ScrollIndicator:
ScrollIndicator { width: swipeView.width anchors.bottom: swipeView.bottom active: true orientation: Qt.Horizontal readonly property Flickable flickable: swipeView.contentItem size: flickable.visibleArea.widthRatio position: flickable.visibleArea.xPosition }
wrote on 8 Aug 2016, 14:31 last edited by@jpnurmi cool, it works, thanks a lot.
1/4