Hi can anyone help me with the best way to generate a popup window inside a Qlistbox when an operator right clicks within the Qlistbox area. (using Qt3)
i have implemented by Qlistbox in the designer, and when using the code
void bla::contextMenuEvent(QContextMenuEvent *event)
{
QPopuMenu contextMenu(this)
contextMenu.exec(event->globalPos());
}
in my subclass i can get the popup menu to appear anywhere in the mainwindow i just cannot get it to only come up within the qlistbox object.
i have replaced the 'this' pointer with the name of my qlistbox object name but still it brings up the popup menu any where on my main dialog.
any help will be very appreciated, thanks in advance,
nlev.
Bookmarks