int main(int argc, char *argv[]) { QApplication a(argc, argv); KeyPress *keyPress = new KeyPress(); keyPress->show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication app(argc, argv); KeyPress window; window.resize(250, 150); window.setWindowTitle("Key press"); window.show(); return app.exec(); }
void MainWindow::KeyPressShow() { KeyPress *keyPress =new KeyPress(); keyPress->show(); }