[Qt-interest] Context menu on QTreeView

Giuseppe D'Angelo dangelog at gmail.com
Fri Aug 19 10:11:46 CEST 2011


On Fri, Aug 19, 2011 at 10:09 AM, Graham Labdon
<Graham.Labdon at avalonsciences.com> wrote:
> Hi
>
> I want to add a context menu to my tree view, such that when a user right
> clicks on an item a context menu is displayed.
>
> I would be grateful if someone could give me the high level steps required.

Combine a QWidget context menu policy (the policies allow you to deal
with context menus in various ways) with indexAt.

-- 
Giuseppe D'Angelo



More information about the Qt-interest-old mailing list