SwipeView shows neighbor pages even if they are not current page
Solved
QML and Qt Quick
-
wrote on 8 Aug 2016, 20:51 last edited by
Hello. I am trying to use SwipeView as area for image previews, everything works as expected, but SwipeView shows neighbor page even if that page is not active page, here is screenshot. So, code for SwipeView:
SwipeView { background: Rectangle { anchors.fill: parent color: "lightsteelblue" } id: previews anchors.top: parent.top; anchors.left: parent.left; width: 130 height: 180 Repeater { model: imgModel Image { fillMode: Image.PreserveAspectFit source: src } } }
As far as you can see, it is limited to 130x180. Anyone know how to fix this?
-
wrote on 8 Aug 2016, 21:06 last edited by
SwipeView
does not clip by default. You can setclip: true
in cases when it is needed. -
wrote on 8 Aug 2016, 21:20 last edited by
@jpnurmi, thanks a lot, already found this property. But had limit in 300 seconds to reply. Seems like u are guru of QML :)
2/3