is it possible to add a context menu for QHeader??
i have a QTreeWidget..i wont to add context menu on right click event of the header..
can this be done..
if someone has done this can you please post a example
thanks..
is it possible to add a context menu for QHeader??
i have a QTreeWidget..i wont to add context menu on right click event of the header..
can this be done..
if someone has done this can you please post a example
thanks..
Last edited by deepal_de; 6th June 2011 at 09:01.
You probably mean QHeaderView.
And yes this is possible, since QHeaderView is a QWidget.
See QWidget::customContextMenuRequested ( const QPoint & pos ) signal.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
deepal_de (9th June 2011)
Bookmarks