Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QApplication a(argc, argv);
- game = new Game();
- game->show();
- //game->start();
- QPushButton *s = new QPushButton("start");
- QObject :: connect(s, SIGNAL(clicked()), qApp, SLOT(Game::start())); /// chce sobie tutaj odpalic ta funkcje start z buttona ale on nie reaguje
- QVBoxLayout *layout = new QVBoxLayout;
- layout->addWidget(game);
- layout->addWidget(s);
- QWidget window;
- window.resize(700,800);
- window.setLayout(layout);
- window.show();
- return a.exec();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement