I create a one QToolButton and adding some Menu Actions on it. I want Change the orientations of menu. Currently all menu items show me in veritcal manner. Please any one tell me how to changes its orientations into Horizontal manners.


Qt Code:
  1. QToolButton* toolBut = new QToolButton;
  2. QMenu* toolMenu = new QMenu( toolBut );
  3. toolMenu->addAction(action1);
  4. toolMenu->addAction(action2);
  5. toolMenu->addAction(action3);
  6. toolBut->setMenu(toolMenu);
To copy to clipboard, switch view to plain text mode 

I want to implement like this way.
_________ _______ ______________
|TOOLBTN | ACT1 | ACT2 |ACT3 |
|_________|______________________|
|TOOLBTN1|
|_________|
|TOOLBTN2|
|_________|