Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. QApplication a(argc, argv);
  2.  
  3. game = new Game();
  4. game->show();
  5. //game->start();
  6.  
  7.  
  8.  
  9. QPushButton *s = new QPushButton("start");
  10. QObject :: connect(s, SIGNAL(clicked()), qApp, SLOT(Game::start())); /// chce sobie tutaj odpalic ta funkcje start z buttona ale on nie reaguje
  11.  
  12. QVBoxLayout *layout = new QVBoxLayout;
  13. layout->addWidget(game);
  14.  
  15. layout->addWidget(s);
  16.  
  17. QWidget window;
  18. window.resize(700,800);
  19. window.setLayout(layout);
  20. window.show();
  21.  
  22.  
  23. return a.exec();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement