qt : expandable/collapsable listview

I hope to create a "NEW" listview like QML Exmaple with native Qt classes.

Exactly I want to make a listview which works like below.

It looks like a QML example but slightly differs. QListView has a limitation for it's layout, right? I want a hint for overcoming the problem.

Answers


You'd want to use GridView instead of ListView. That'll get you a step closer to making your UI look like what you have designed. However currently Qt Quick only supports fixed cell sizes of grid items, which means you won't be able to expand the cell size of just one item. All you can do is set up the cell size to fit the expanded item so that every grid item will take up as much space as it could possibly need. Then you can alter the dimensions of each item without worrying about fitting issues.


Need Your Help

App-Engine JDO consistent reading not working, maybe caching?

eclipse google-app-engine gwt jdo datanucleus

Today it's the first time I'm using GWT and JDO. I am running it with Eclipse in the local debug mode.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.