Hi All,

I have:
1) Main window based on QWidget cpp and h files with window (form)
2) Slave window fabout based on QWidget cpp and h files with form.

I want to open (render) slave widget in the main window.

Is it possible ?

------------------------------------------------------------
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
....
}

--------------------- slave widget class ------------

class about : public QWidget
{
Q_OBJECT

public:
explicit about(QWidget *parent = 0);
~about();

private:
Ui::about *ui;
};

------------- mainwindow consturctor -------------------

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
// this->showMaximized();

fabout = new about(this);
//fabout->setWindowFlags( Qt::FramelessWindowHint);//CustomizeWindowHint );

//--- initialization of main layout ---
layout_main = new QHBoxLayout;
layout_main->addWidget(fabout);
layout_main->addStretch(1);
layout_main->addWidget(ui->mdiArea);
....
}

-------------------------------------

Second widget is drawn on main widget, except in case when I set this->showMaximized()

So, please tell me where I am wrong