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

Problems with Gridview

$
0
0
I honestly don’t know why it is not working for you now as it is working with Qt Quick 2 which I am using. The VisualItemModel is quite a narrow use case but if you need a separate delegate per item in your model it might make sense. I think it’s a case of, if you don’t know what to use it for then don’t use it :) Any visual item (deriving from QQuickItem) can always be a root item. There is nothing special a bout Rectangle apart from the fact that it is a QQuickItem. The fact that rectangle is used in examples is just for consistency. Often you want a frame around the items you are demonstrating but I am sure you can find some counter examples if you look around. The only “special” root item is Window/ApplicationWindow which can also be a root item in many cases, but it will not work if you use it as a root item in a QQuickView as QQuickView itself is a window.

Viewing all articles
Browse latest Browse all 4972

Trending Articles