Set the layout as dialog's top level layout.
Qt Code:
  1. dialog->setLayout(hLayout);
To copy to clipboard, switch view to plain text mode