PDA

View Full Version : QTreeWidget Context Menu



^NyAw^
11th May 2007, 11:17
Hi,

I'm trying to show a context Menu on a QTreeWidget when there is a right mouse click. The problem is that I want to show different menus depending on the item that was clicked.

I know that I can disable the action but I don't want to see this action. So I want to know if there is a way to create different context Menus or have I to create the actions depending on the item that was clicked.

Thanks for any idea

spud
11th May 2007, 11:21
Are you aware of QAction::setVisible ( bool )?

^NyAw^
11th May 2007, 11:24
Hi,

Wow, :rolleyes:

Thanks!