babu198649
29th May 2008, 15:10
hi
i need to create a TreeView which should look same as the QtDesigner's WidgetBox(visible at the left side of the designer) . The first level items should be placed inside a rectangular window with the items text on it.
i have gone through the source code of QtDesigner and found that the QItemDelegate class has been subclassed and the subclassed object has been set to QTreeWidget(through setItemDelegate).
i have used the same subclassed delegate file but i am not getting the desired results.
ie. i get two expand symbols. And only after double clicking the items are expanded.
Is there a simple way to make a TreeWidget same as the QtDesigner's WidgetBox TreeWidget.
i need to create a TreeView which should look same as the QtDesigner's WidgetBox(visible at the left side of the designer) . The first level items should be placed inside a rectangular window with the items text on it.
i have gone through the source code of QtDesigner and found that the QItemDelegate class has been subclassed and the subclassed object has been set to QTreeWidget(through setItemDelegate).
i have used the same subclassed delegate file but i am not getting the desired results.
ie. i get two expand symbols. And only after double clicking the items are expanded.
Is there a simple way to make a TreeWidget same as the QtDesigner's WidgetBox TreeWidget.