i try to check if QPixmap is initialized, when i try to check using :
QPixmap pix;
if(pix.data_ptr())
or
if(pix != null)
where pix is member of QPixmap type .
all gives me :
Access violation reading location 0x0000000c.
how can i check in code if pix is null ?