Arend
20th May 2013, 16:26
Hi,
I have copied the breakout game from the website http://www.zetcode.com/gui/qt4/breakoutgame.
But I don't see the images, what am I doing wrong?
Regards,
Arend
#include "brick.h"
#include <iostream>
#include <QDebug>
Brick::Brick(int x, int y)
{
image.load("brick.png");
destroyed = FALSE;
rect = image.rect();
qDebug()<<rect;
rect.translate(x, y);
}
etc.
I have copied the breakout game from the website http://www.zetcode.com/gui/qt4/breakoutgame.
But I don't see the images, what am I doing wrong?
Regards,
Arend
#include "brick.h"
#include <iostream>
#include <QDebug>
Brick::Brick(int x, int y)
{
image.load("brick.png");
destroyed = FALSE;
rect = image.rect();
qDebug()<<rect;
rect.translate(x, y);
}
etc.