I have following code:
Qt Code:
  1. void MainWindow::check_for_updates()
  2. {
  3. QNetworkAccessManager *qnam = new QNetworkAccessManager(this);
  4. reply = qnam->get(QNetworkRequest((QUrl)"http://piorekf.org/plug/VERSION"));
  5. connect(reply, SIGNAL(readyRead()), this, SLOT(httpReadyRead()));
  6. }
  7.  
  8. void MainWindow::httpReadyRead()
  9. {
  10. if(reply->readAll() > VERSION)
  11. {
  12. QLabel *label = new QLabel(tr("<b>Update available!</b>"), this);
  13. ui->statusBar->addWidget(label);
  14. QMessageBox *msgbx = new QMessageBox;
  15. msgbx->setWindowTitle(tr("Update"));
  16. msgbx->setText(tr("<b>Update available!</b>"));
  17. msgbx->setInformativeText(tr("Check homepage for new version"));
  18. msgbx->setIcon(QMessageBox::Information);
  19. msgbx->show();
  20. // QMessageBox::information(this, "Update", "<b>Update available!</b><br>Check homepage for new version.");
  21. }
  22. else
  23. ui->statusBar->showMessage(tr("You are using the newest version"), 5000);
  24. }
To copy to clipboard, switch view to plain text mode 

The problem is that when I use static function (here commented) or change line 19 to "msgbx->exec();" I get Segmentation Fault. I'm using Qt 4.7.2 on Linux. I'm not 100% sure but I think that on Qt 4.7.1 everything was fine and there was no segfault. Any ideas?