Qt Code:
  1. QHBoxLayout *layout = new QHBoxLayout( this );
  2. QWidget *newTab = new QWidget( this );
  3. newTab->setLayout( layout );
  4.  
  5. QRadioButton *aCOption_ = new QRadioButton( "Button 1", this );
  6. QRadioButton *aWOption_ = new QRadioButton( "Button 2", this );
  7. QRadioButton *aBOption_ = new QRadioButton( "Button 3", this );
  8.  
  9. layout->addWidget( aCOption_ );
  10. layout->addWidget( aWOption_ );
  11. layout->addWidget( aBOption_ );
  12. layout->addStretch();
  13.  
  14. tabWidget->addTab( newTab, ( "New tab" ) );
To copy to clipboard, switch view to plain text mode 

Error is that it puts the buttons on one line, but would require that the buttons would be on a separate line