PDA

View Full Version : QWidget in QTreeview



baray98
2nd January 2008, 07:04
Guys,

I am working with QTreeView ,Derived QItemDelegate and a treeModel (using QStandardItem). Now my question is how can i draw/make a custom widget as item in my treeview using delegate.

wysota:
this is kinda continuation of my probs....that thread was getting longer

if you guys can post some snippet i would appreciate it

baray98

jpn
2nd January 2008, 08:00
Have you noticed Star Delegate Example (http://doc.trolltech.com/latest/itemviews-stardelegate.html)?

baray98
2nd January 2008, 18:22
yes, thank you .. one more thing I want to give my user some contextMenu omn right click on that widget. How will i insert my context menu?

baray98

marcel
2nd January 2008, 18:40
See the QWidget::customContextMenuRequested() signal or the QWidget::contextMenuEvent() event handler.