[Qt-interest] efficient ways to store menu items in file with/without QSettings

_h_ hiralsmaillist at gmail.com
Thu Jul 23 10:42:14 CEST 2009


Hi,
my Qt application requires to store the menu information (submenus,
menuitems, shortcut keys, etc), to persist across sessions.

1) Can you please suggest efficient ways to store this in file other than
QSettings?

2) how efficient QSetting is, in storing hierarchical data (without
repeating the same info) ?
     Just for illustration, how efficiently the QTreeWidgetItems can be
stored using QSetting, without repeating the info like...
    <example 'setting.txt' file>
    Line1: main_menu/File
    Line2: main_menu/File/Print
    ...
    Line 10: main_menu/Edit
    Line 11: main_menu/Edit/Copy
    ...
    Here you can see that the 'main_menu', 'File' and 'Edit' is redundant
info, using QSettings how it can be avoided ?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090723/8844dbe1/attachment.html 


More information about the Qt-interest-old mailing list