PDA

View Full Version : How to make...



SkripT
19th February 2006, 10:31
hi all, I would like to know how to make that the first row (root) in the tree view appears in a rectangle that can be constrained or expanded as shown in the image that I include obtained from the designer of Qt4.1 for Windows. Moreover I would like to know how to insert various tree views in a scroll area as shown in the image, too. Or simply what kind of widget is. Thanks.

wysota
20th February 2006, 16:36
hi all, I would like to know how to make that the first row (root) in the tree view appears in a rectangle that can be constrained or expanded as shown in the image that I include obtained from the designer of Qt4.1 for Windows.

You can check Designer's code to be sure, but my guess is that the painting routine for an element just draws the primitive of a button using the current style (probably QStyle::PE_PanelButtonCommand).