C++ (Qt) FProducts *pFProducts = new FProducts(this); pFProducts->setAttribute(Qt::WA_DeleteOnClose); ui->mdiArea->addSubWindow(pFProducts); pFProducts->show();
C++ (Qt) pFProducts->setAttribute(Qt::WA_DeleteOnClose);