If you have a QMainWindow in your application then you should use, in one of the main window's members:
Qt Code:
  1. setCentralWidget(splitter);
To copy to clipboard, switch view to plain text mode 
You should browse through the Qt examples. You can find a lot of useful stuff there, including splitters and main windows.