Advertisement

03.13.2008 at 02:56AM PDT, ID: 23237884 | Points: 500
[x]
Attachment Details

dynamic menu with endless possible submenus

Tags: c++
I am creating a Dynamic Menu, like for a menu bar. It creates itself according to what is read from a config file.
so if for example in my configuration file i have "Vehicles/4Wheel/Cars"

My Menu should look like

Products
Vehicles -----4Wheel ------ Cars

so there opens 2 Submenus from the root menu.

I am wondering how is the best way to keep track of this. As of now i only managed to do it for having one sub menu by:
std::map< QString, QMenu* > m_SubMenus;
By keeping track of my Menus. QString is the name of the Action under the root menu, like Vehicles in the above example.

I need to keep track of them since the user can modify these menus at runtime.

Any good idea?
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: Endelm
Question Asked On: 03.13.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
03.13.2008 at 03:00AM PDT, ID: 21114547

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 03:10AM PDT, ID: 21114587

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.13.2008 at 03:38PM PDT, ID: 21121521

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628