title: One QMenu for all QToolButton
body: <p>I've created QToolBar which contains few QToolButton. Each QToolButton has QMenu which is one for all. And this menu has few actions.</p>
  
  <p>Ugly example:</p>
  
  <pre><code>QToolBar bar;
  
  QMenu menu;
  QAction action1;
  menu.addAction(action1);
  QAction action2;
  menu.addAction(action2);
  
  QToolButton b1;
  b1.setMenu(menu);
  bar.addWidget(&amp;b1);
  
  QToolButton b2;
  b2.setMenu(menu);
  bar.addWidget(&amp;b2);
  </code></pre>
  
  <p>So my question is next: How to know what QToolButton opens menu and perform menu action.</p>
  
  <p>Example</p>
  
  <p><img src="https://i.stack.imgur.com/XOYSz.png" alt=""></p>