[Kmymoney-devel] Context menu in Qt4 list widgets

Alvaro Soliverez asoliverez at gmail.com
Tue Mar 2 01:52:56 CET 2010

On Mon, Mar 1, 2010 at 11:16 AM, Cristian Oneţ <onet.cristian at gmail.com> wrote:
> On Mon, Mar 1, 2010 at 2:53 PM, Alvaro Soliverez <asoliverez at gmail.com> wrote:
>> 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

More information about the KMyMoney-devel mailing list