September 16, 2011

Emily Emily
Lab Rat
11 posts

How to enablement switchover of listView and GridView

 

Hello everyone listView and GridView use a the same listModel in a program UI , I want to enablement switchover except the exchange of ‘Z’ property
whether there are any other method????

any answer is grateful
Thanks

5 replies

September 16, 2011

Kunal Parmar Kunal Parmar
Lab Rat
18 posts

I think you want switch between listview and gridview, you can try setting opacity to 0 and 1 as you need

September 16, 2011

Emily Emily
Lab Rat
11 posts

but that will make it run slowly(gridview display many images and pictures)

whether can dynamic create listView or GridView?

September 16, 2011

Kunal Parmar Kunal Parmar
Lab Rat
18 posts

Then you can try using Loader element to create ListView or GridView dynamically and destroy it.

September 16, 2011

Emily Emily
Lab Rat
11 posts

How about use IavaScript’s function to dynamic creat one of the view

September 19, 2011

Kunal Parmar Kunal Parmar
Lab Rat
18 posts

I think that’s possible, I have seen such code in this forum…

 
  ‹‹ Scrolling the list while mouse is pressed in delegate      Thumbnail contact in QML ››

You must log in to post a reply. Not a member yet? Register here!