I don't see why wouldn't it be.
It depends if you want the menu to be flat or have submenus.I guess I have to inherit from QAbstractTableModel for my model,
No. You can't inherit from two widget classes at once and besides there is no point in using QAbstractItemView here. Just make your infrastructure "talk" directly to the model. You don't even need to subclass QMenuBar, just have a component that will populate an existing menu bar.from QAbstractItemView and QMenuBar for my desktop view and from QAbstractItemView for my touchscreen view. Is this idea correct?
There is a bunch of signals in the model API you need to connect to to be notified when data is added/removed from the model. Then update your menu accordingly.
Bookmarks