int main(int argc, char *argv[]) { QApplication a(argc, argv); Calculate w; w.show(); return a.exec(); }
void Circle::on_pushButton_clicked() { Calculate* w = new Calculate; w->setAttribute(Qt::WA_DeleteOnClose); w->show(); this->close(); }
void Rectangle::on_bBack_clicked() { Calculate* w = new Calculate; w->setAttribute(Qt::WA_DeleteOnClose); w->show(); this->close(); }