[Kmymoney-devel] Context menu in Qt4 list widgets

Cristian Oneţ onet.cristian at gmail.com
Mon Mar 1 15:16:20 CET 2010


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.

Regards,
Cristian


More information about the KMyMoney-devel mailing list