dieter
20th November 2011, 10:40
MainPlayerBoard::MainPlayerBoard(QString naam, short count, QWidget *parent):
QMainWindow(parent),
ui(new Ui::MainPlayerBoard)
{
ui->setupUi(this);
QImage eerste;
eerste.load(":/image.gif");
ui->tile1->pixmap();
ui->tile1->setPixmap(QPixmap::fromImage(eerste));
ui->tile1->show();
MainPlayerBoard::setWindowTitle(naam);
m_count = count;
}
I first tried to load the pictures from a QVector<QPixmap*> which didn't work.
Then I tried to load them from a QPixmap, didn't work either...
after a while I tried this...
But the problem remains, the QPixmap on my screen does not show up...
Please help me out
QMainWindow(parent),
ui(new Ui::MainPlayerBoard)
{
ui->setupUi(this);
QImage eerste;
eerste.load(":/image.gif");
ui->tile1->pixmap();
ui->tile1->setPixmap(QPixmap::fromImage(eerste));
ui->tile1->show();
MainPlayerBoard::setWindowTitle(naam);
m_count = count;
}
I first tried to load the pictures from a QVector<QPixmap*> which didn't work.
Then I tried to load them from a QPixmap, didn't work either...
after a while I tried this...
But the problem remains, the QPixmap on my screen does not show up...
Please help me out