On second thoughts forwarding the signal will not work in your case, because it does not pass a reference to the QMenu object, so you will not get access to the cloned menu. You can instead just directly connect to the selection change signal from gui.library_view and modify the menu there rather than in aboutToShow.
|