Hi, i have one widget defined lik this:

Qt Code:
  1. class TestWidget: public QWidget, private Ui::TestWidget
To copy to clipboard, switch view to plain text mode 

I thougt that is it is derived from QWidget, can be added in a layout using ->addWidget().

Is this wrong? How can I put it in the MainWindow?

Thanks