[Kmymoney-devel] Context menu in Qt4 list widgets

Cristian Oneţ onet.cristian at gmail.com
Tue Mar 2 08:28:31 CET 2010

În data de Marți 02 Martie 2010 02:52:56 Alvaro Soliverez a scris:
> On Mon, Mar 1, 2010 at 11:16 AM, Cristian Oneţ <onet.cristian at gmail.com> 
> > On Mon, Mar 1, 2010 at 2:53 PM, Alvaro Soliverez <asoliverez at gmail.com> 
> >> Hello,
> >> does anyone have experience with custom context menus in Qt4?
> >> I'm porting the Payees view to full Qt4 mode, and I can't get the
> >> custom context menu to activate.
> >>
> >> I'm setting the contextMenuPolicy and connecting the signal to the
> >> method which opens the context menu for the selected item.
> >>
> >> I'm thinking of deactivating altogether and replacing it with a button
> >> bar like the budget list, but first I wanted it to work as-is.
> >
> > Take a look at kmymoneyaccounttreeview.cpp, there a Qt4 widget uses
> > the custom context menu signal and it works.
> Hmmmm, how did you get away with the signal and the slot having the
> same name? :D
I didn't know there was such a restriction, that's how.


Cristian Oneţ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100302/5bb01625/attachment.sig 

More information about the KMyMoney-devel mailing list