title: QMessageBox; button layouts
body: <p>I am a student programmer using Qt to build a GUI interface fro my company. I am currently building a reader table that reads in data and separates it appropriately based on file type. Anywho; when a certain file extension is selected I have a Message box display for selecting what type of data is in this file. Currently the message box shows all the buttons stacked from left to right and it looks kinda dumb. I want them to either stack from top to bottom of even better stack 2x2. I have been looking through <a href="http://qt-project.org/doc/qt-4.8/QMessageBox.html" rel="nofollow noreferrer">QMessageBox documentation</a> and cant seem to find a method to do this. I know that one must exist it seems i just need some help finding it. Currently my cod for this message box looks like this;</p>
  
  <pre><code>            QMessageBox templateSelectorWindow;
              QPushButton * pressureBC =templateSelectorWindow.addButton("Pressure Boundry Condition", QMessageBox::AcceptRole);
              QPushButton * flowBC = templateSelectorWindow.addButton("Flow Boundry Condition", QMessageBox::AcceptRole);
              QPushButton * massFlowBC = templateSelectorWindow.addButton("Mass Flow Boundry Condition", QMessageBox::AcceptRole);
              QPushButton * thermalWallBC = templateSelectorWindow.addButton("Thermal Wall Boundry Condition", QMessageBox::AcceptRole);
              QPushButton * cancelButton = overwriteWarning.addButton("Cancel", QMessageBox::RejectRole);
              templateSelectorWindow.setWindowTitle("Input File Type");
              templateSelectorWindow.setText("Input Files Require You Select The Input File Type:");
              templateSelectorWindow.setInformativeText("Please select the the input type from the following");
              templateSelectorWindow.exec();
  </code></pre>
  
  <p>currently this windows looks like this:
  <img src="https://i.stack.imgur.com/2LFrD.png" alt="enter image description here"></p>
  
  <p>so know you can see why I'd like to change the layout here. Thanks for reading my post! Thanks in advance for any help you can contribute to overcoming this challenge. </p>