PDA

View Full Version : Qt Tree Widget Question



alavtec
15th July 2008, 19:45
Hi,
I'm a Qt beginner, and I was wondering how to display a certain type of widget. I have a photo from the Qt designer of an expandable tree where sub-objects can have values or combo boxes associated with them. It looks like this:
http://filebox.vt.edu/users/tmoss/public/QT3.JPG

Is there a widget (or a combination of widgets) of do this? It's also similar to the properties menu you get in Qt's Visual Studio integration.

So far I've been able to make trees with sub-objects and values associated with sub-objects, but none with combo boxes.

Thanks,
Al

wysota
15th July 2008, 21:13
Read about custom delegates and custom editors (especially see the "spinbox delegate" example).

alavtec
16th July 2008, 16:21
Thanks! Will do!

Al