how can i customize QMessageBox Icon;i am using this code

Qt Code:
  1. QMessageBox mb("Application Name",
  2. "Hardware failure.\n\nDisk error detected\nDo you want to stop?",
  3. QMessageBox::NoIcon,
  4. QMessageBox::Yes | QMessageBox::Default,
  5. QMessageBox::NoButton,
  6. QMessageBox::NoButton);
  7. QPixmap exportSuccess(":/new/prefix1/Resources/export.png");
  8.  
  9. mb.setIcon(QMessageBox::setIconPixmap(exportSuccess));
To copy to clipboard, switch view to plain text mode 


but i get this error "illegal call of non-static member function"