int main(int argc, char ** argv) { QApplication app( argc, argv ); Testdlg dialog; if (dialog.exec() != QDialog::Accepted) return -1; Mainwindow mainwindow; mainwindow.show(); return app.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); /* Set window default position */ QDesktopWidget *desktop = QApplication::desktop(); int x = (desktop->width()-W)/2; int y = (desktop->height()-H)/4; Mainwindow w; w.move(x, y); w.show(); w.askUserName(); return a.exec(); }
void LeftPanel::OnPrevB(wxCommandEvent & WXUNUSED(event)){ Mainwindow * mw = (Mainwindow *) m_parent->GetParent(); mw->show(pdfpanel->page-1); }
void RightPanel::OnShowB(wxCommandEvent & WXUNUSED(event)) { Mainwindow * mw = (Mainwindow *) m_parent->GetParent(); mw->show(pdfpanel->page); }