There should be something which bridges the (very dynamic) QAbstractItemModel with a QMenu so that e.g. the mailbox hierarchy can be properly shown in pop up menus. The starting point could be the code at https://qt.gitorious.org/qt/qtwebkit-examples-and-demos/blobs/stable/examples/webkitwidgets/browser/modelmenu.cpp, but it will need to be expanded with support for the funny dynamic signals emitted by the QAIM. https://projects.flaska.net/issues/637
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.