[Qt-interest] QMenu grouping?

Anatoly Burakov burakov.anatoly at googlemail.com
Thu Mar 18 19:44:25 CET 2010


Hi all

I have a plugin-based application and a set of menus. Initially some of
the menus are empty, but they will be populated by plugins. One menu has
several sections divided by separators. What i would like to achieve is
similar to the layout managed by the QVerticalLayout - i add a QAction
not to the QMenu itself, but to some sort of logical group, allowing me
to add any number of QActions to one group and not being worried about
indexes. Is there a way of doing something like that in QT? If not -
what would be the best way to implement it myself (without adding
another level of QMenu's)?

Best regards,
Anatoly

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5238 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100318/4f872014/attachment.bin 


More information about the Qt-interest-old mailing list