Results 1 to 6 of 6

Thread: using XML to save menus?!?!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: using XML to save menus?!?!

    To build menu from your xml file:

    Using QDomElement read each element of your xml file. Each element that do not have any child is a QAction which is added to menu, whereas element which has one or more children is QMenu which comes under its parent (if it has one).

    You might have to maintain the list of actions and menus so that you can build xml again from your menus.
    Last edited by munna; 7th April 2006 at 07:27. Reason: Grammar Correction

  2. The following user says thank you to munna for this useful post:

    nupul (7th April 2006)

Similar Threads

  1. How to save file with QFileDialog
    By pnikolov in forum Qt Programming
    Replies: 11
    Last Post: 1st June 2012, 10:23
  2. Replies: 2
    Last Post: 27th June 2008, 19:02
  3. Maya Style Right Click Menus in Qt
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2007, 11:55
  4. save animate to gif
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 16:35
  5. What does "Save All" actually save?
    By Mariane in forum Newbie
    Replies: 7
    Last Post: 31st January 2006, 13:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.