Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

2 dimensions flickable GridView

$
0
0
Hello. I want to get a gridview scollable horizontally AND vertically. I have got 100 items with 10 columns and 10 rows and my view is smaller and I want to drag my view everywhere on this surface. How to do that? To begin, I tried with only 9 items, 500×500, 3 columns and 3 rows, and a view size of 800×800. I wrote that: GridView{         width: 800         height: 800         contentHeight: 1500         contentWidth: 1500         clip: true         anchors.centerIn: parent           model: itemList         delegate: itemDelegate         cellHeight: 500         cellWidth: 500       } But I get an alone column with 9 rows and my view is flickable vertically, not horizontally. Perhaps, one solution is to create 3 vertical gridview (with 3 items into each), that I insert into a parent horizontal gridview? But this is stupid. these are lists, not a grid!

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images