Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QApplication>
- #include <QWidget>
- #include <QVBoxLayout>
- #include <QPushButton>
- #include "breakout.h"
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- Breakout a;
- // QApplication::setFont("Times", 18, QFont::Bold);
- QWidget *window = new QWidget;
- window->resize(640,480);
- window->setMaximumSize(640,480);
- window->setMinimumSize(640,480);
- QVBoxLayout *layout = new QVBoxLayout;
- QPushButton onePlayer("Start");
- onePlayer.resize(400,50);
- QPushButton authors("Autorzy");
- QPushButton quit("Quit");
- layout->addWidget(&onePlayer);
- layout->addWidget(&authors);
- layout->addWidget(&quit);
- QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
- QObject::connect( &onePlayer, SIGNAL(clicked()), &a, SLOT(a.show()) );
- window->setLayout(layout);
- window->show();
- //a.show();
- return app.exec();
- }
Add Comment
Please, Sign In to add comment