|
|
sebastien dolard wrote:
Hi,
Is there a solution to have a popup menu on a QHeader ?
I'd say you'll need to subclass QHeader and reimplement the appropriate
event handler to popup your contextual menu. The logical choice would be
to reimplement mouseReleaseEvent(QMouseEvent*) and check the event to
see which button caused the event.
QHeader also inherits contextMenuEvent(QContextMenuEvent*), but the way
QContextMenuEvents are generated is platform-dependent. If you don't
bother with portability, this could be a good alternative.
--
Matthieu Dazy (dazy@xxxxxxxxxxxxxxxxx) -- tel. +33 (0)3 83 67 66 19
Earth Decision Sciences, Nancy -- http://www.earthdecision.com
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|