PDA

View Full Version : QScrollBar context menu



ChasW
29th January 2007, 06:39
Is it possible to get the pointer to the context menu for a QScrollBar object so that the menu can be added to?

If I try overriding contextMenuEvent in a subclass, I can add my item to a new menu, but I was hoping to preserve the old one if possible, and just add to it.

Thanks,
Chas

jpn
29th January 2007, 06:45
Unfortunately it's not. The context menu seems to have been hard coded into QScrollBar::contextMenuEvent() and there's no way to access the local QMenu object.