Hello all,
I have a problem with building a dynamic menu.
I need to on the aboutToShow() signal for a qpopupmenu populate it with entries, as well as sub menus. This would be no problem if I had a pointer to the menu, but I do not because all the menus are built with KDE's XMLGUI.
So, I need a method to retrieve a pointer to a qpopupmenu, and all I got is its menu identifier(not index or Id). I have a qmenubar(kmenubar) via QMainWindow(kmainwindow). Tricky, AFAICT..
I know building dynamic menus are generally a bad idea, but I have a valid reason(honest!).
Any ideas?
Thanks in advance,
Frans