One major down side to the QMenu class is if you need to add a lot of items to it, it begins to wrap around the screen if one column can't fit.
In Qt3 I was able to relatively easily add a list view to a menu to solve this problem. If you get too many things in the menu it simply scrolls instead of adding another column. In Qt4 this seems to be far harder or at least elusive to me.
The closest thing I can find that uses this in Qt4 is the QCompleter when showing a popup. However, it just shows a QAbstractItemView by setting its geometry and displaying it. I want to display a QListView in much the same way but as a submenu of a context menu but have no clue how to do it.
ie:
Any ideas?Qt Code:
Cut Ctrl+X Copy Ctrl+C Paste Ctrl+V --------- Versions > // <-- this submenu would be a QListView with potentially a bunch of items in itTo copy to clipboard, switch view to plain text mode
Bookmarks