try to use QImage pointer.
class myClass : public QMainWindow
{
Q_OBJECT
QImage *fond; //use pointer
QLabel *wfond;
};
myClass::myClass()
: QMainWindow()
{
fond = new QImage; //allocate here.
this->fond->load("somepic.jpg");
...
}
why you using this pointer everywhere?
Bookmarks