int main(int argc, char *argv[]){
app.setStyleSheet(stylesheet);
PMain pm(0);
pm.show(); // <--
return app.exec();
}
{
...
};
Log("P system started.");
pui.setupUi(this); // <--
rows = 10;
connect(pui.actionSave, SIGNAL(triggered()), this, SLOT(s_Save()));
connect(pui.actionSave_As, SIGNAL(triggered()), this, SLOT(s_SaveAs()));
connect(pui.actionOpen, SIGNAL(triggered()), this, SLOT(s_Open()));
}
int main(int argc, char *argv[]){
QApplication app(argc, argv);
QString stylesheet("");
app.setStyleSheet(stylesheet);
PMain pm(0);
pm.show(); // <--
return app.exec();
}
class PMain : public QMainWindow // <--
{
...
};
PMain::PMain(QWidget *parent) : QMainWindow(parent) {
Log("P system started.");
pui.setupUi(this); // <--
rows = 10;
connect(pui.actionSave, SIGNAL(triggered()), this, SLOT(s_Save()));
connect(pui.actionSave_As, SIGNAL(triggered()), this, SLOT(s_SaveAs()));
connect(pui.actionOpen, SIGNAL(triggered()), this, SLOT(s_Open()));
}
To copy to clipboard, switch view to plain text mode
Bookmarks