MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QObject::connect(ui->Start, SIGNAL(clicked()),this,SLOT(on_Start_clicked()));
   // QString wybor = ui->ComboLista->currentText();

}
Exemplo n.º 2
0
void MainWindow::on_NewGame_clicked()
{
    on_Start_clicked(false);
    ui->Start->setChecked(false);
    iLoop->Restart();

    iScore1 = 0;
    iScore2 = 0;
}
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QObject::connect(ui->Start, SIGNAL(clicked()),this,SLOT(on_Start_clicked()));
    connect(ui->Off, SIGNAL(clicked()), this, SLOT(close()));

    QPixmap pixmap("//home//student//logowat.png");

    ui->LogoWat->setPixmap(pixmap);
    ui->LogoWat->setMask(pixmap.mask());
    ui->LogoWat->show();

    QPixmap pixmap2("//home//student//logoitk.png");
    ui->LogoItk->setPixmap(pixmap2);
    ui->LogoItk->setMask(pixmap2.mask());
    ui->LogoItk->show();
   // ui->Qautor->setC
}