Try initializing all of your pointers to zero first in your constructor before you initialize or access them.
Also QPixmap has a function isNull()
. This can be useful for checking for errors with them.
Also if you use the default constructor (doorOpen = new QPixmap();
) for a pixmap and then call load()
with the filename you want to use, you are able to check the return value of load()
to perform error checking.
http://qt-project.org/doc/qt-4.8/qpixmap.html#isNull
http://qt-project.org/doc/qt-4.8/qpixmap.html#load
Hope that helps.