PDA

View Full Version : How to implement a custom widget that looks like the Qt toolbox?



ttvo
19th February 2009, 18:04
Could anyone please let me know how I'm going to be able to build something similar to the attached image? Is it a custom QTreeView? How am I going to get the collapsible icon (-/+) and the grouping? Thanks.

wysota
19th February 2009, 18:49
Yes, it's a tree view. The groups are implemented using a custom delegate. Just take Designer's sources and find the appropriate component to see the details.

talk2amulya
19th February 2009, 19:37
why dont u check out the code of designer itself..u hv the source, go through it..at least it'll make clear how u do it :)