...
No Format | ||||
---|---|---|---|---|
| ||||
# Critical message with title and buttons. # Returns 0 (OK), 1 (Cancel), 2 (Details) set button [qcritical Error "Failed to open file" OK Cancel Details] if { $button == 0 } { # OK button was pressed } elseif { $button == 1 } { # Cancel buttons was pressed } elseif { $button == 2 } { # Details buttons was pressed } |
Example #Critical Critical dialog with extra buttons shows a warning dialog with a title and extra buttons. The number 0, 1, or 2 is returned to the program, depending on which button the user clicks.