for safety you add following which I added in blue
MyGraphicView::MyGraphicView(QWidget *parent) :
QWidget(parent),info_filesize(NULL)
{
[...]
info_filesize = new QLabel(this);
[...]
info_filesize->setText("KB"); // <- works!!!
}
void MyGraphicView::updateImageInformation()
{
if(info_filesize)
info_filesize->setText("----"); // <- SIGSEGV
}
Bookmarks