"Don't Show This Again"
-
You can have a bool store it in some file (some custom made settings file for your application) or use the "QSettings":http://doc.qt.nokia.com/stable/qsettings.html class to store it (and any other settings for application)
-
"QErrorMessage":http://doc.trolltech.com/4.7/qerrormessage.html might be what you want, although the "dont't show again" info is not saved permanently (by means of QSettings).
-
You can use "QStyle::standardIcon() ":http://doc.trolltech.com/4.7/qstyle.html#standardIcon
with one of these values for the StandardPixmap standardIcon parameter:
@
QStyle::SP_MessageBoxInformation
QStyle::SP_MessageBoxWarning
QStyle::SP_MessageBoxCritical
QStyle::SP_MessageBoxQuestion
@ -
To save the settings you could have a look at "QSettings":http://doc.qt.nokia.com/4.7/qsettings.html for platform-independent application settings.