The documentation for QWidget::setLayout() -- have you read it? -- says that you must first delete a widget's layout before you can set another layout. You get the error message because you have not done so.
Pawello (11th August 2012)
I've already find it out but thanks for help
Bookmarks