May 2019
Intermediate to advanced
542 pages
13h 37m
English
QMessageBox is a simple dialog box used mainly to display short messages or ask yes-or-no questions. The simplest way to use QMessageBox is to take advantage of its convenient static methods, which create and show a dialog box with minimal fuss.
The six static methods are as follows:
| Function | Type | Dialog |
|---|---|---|
| about() | Modeless | Shows an About dialog box for your application with the given text. |
| aboutQt() | Modeless | Shows an About dialog box for Qt. |
| critical() | Modal | Show a critical error message with the provided text. |
| information() | Modal | Show an informational message with the provided text. |
| warning() | Modal | Show a warning message with the provided text. |
| question() | Modal | Asks the user a question. |
The main difference ...
Read now
Unlock full access