Hi, I have a problem: I have a main window where I add centralWidget().
The class inherits QMainWindow.

Qt Code:
  1. QToolBox *m_pToolbox = new QToolBox();
  2. QTabWidget *m_pTabVnos = new QTabWidget();
  3. m_pToolbox->addItem(m_pTabVnos,trUtf8("Insert));
  4. setCentralWidget(m_pToolbox);
To copy to clipboard, switch view to plain text mode 

Now I want this widget not to resize itself through all the central widget.
I want this QToolBox to be 1/3 of the width of the central widget (like in kpdf program).
The rest of the space (so 2/3 of the width) will be empty or now.

How can I do that?