C++ (Qt) void closeEvent(QCloseEvent *event); signals: void windowClosed();
C++ (Qt)void MainWindow::closeEvent(QCloseEvent *event){ emit windowClosed();} void MainWindow::slot1(){ Form *bufka = new Form; connect(this, SIGNAL(windowClosed()), bufka, SLOT(close())); bufka->show();}
C++ (Qt)Form z(this);
Form *bufka = new Form(this);
setWindowsFlag(Qt::Window);
C++ (Qt)setWindowFlags(Qt::Window);
C++ (Qt)Form *bufka = new Form;
C++ (Qt)Form *bufka = new Form(this);