QMessageBox Change Icon The QMessageBox class provides a modal dialog for informing the user or for asking the user a question and receiving an answer. QMessageBox supports four predefined message severity levels, or message types, which really only differ in the predefined icon they each show. Specify one of the four predefined message types by