title: In Qt 4.7, how can a pop-up menu be added to a QToolbar button?
body: <p>I am newbie to Qt and am currently playing about with Qt Creator and raw C++ code. I have managed to get some simple functionality working, including a menu and toolbar by adding QAction objects to both. However I am having some difficulty:</p>
  
  <p>What I would like to do is have a menu option which has a submenu, e.g. New, with a submenu with a couplwe of items, and duplicate this on the QToolbar. I have managed it in the menu: New as a QMenu, and submenu items as QAction objects. I cannot see how to get this to work in the toolbar, e.g. a New button which, when clicked, would run the "default" QAction (such as the first submenu item), but with a smaller menu button to the right offering all other options. I suppose this is  analogous to the Undo/Redo buttons on the Office toolbars.</p>