Ok, I'm trying to copy the dynamic QPopupMenu that's used for the 
Track instrument menu (attached to the Tracks menu).   In this case
though I want to attach the QPopupMenu to an editview (so we can
create a dynamic menu of Controller Rulers basically).

The bit I'm not sure about is this equivalent piece of code:

    QPopupMenu* addControlRuler =
        dynamic_cast<QPopupMenu*>(factory()->
                container("add_control_ruler", this));

    if (addControlRuler)  { [...] }

When I attach this to a <Menu> item in matrix.rc (modifying the
"add_control_ruler" element) something goes horribly wrong at runtime.
I've not idea what this factory stuff is doing but it's not working for
the edit views in the same way as it does for the main window.

Any clues?  I'm looking at you, G.

R


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to