首页 > comp > gb.qt4 > message 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
Message (gb.qt4)

This class is used for displaying message boxes.

代号
该类是静态类。
该类可以作为函数使用。

静态 属性  静态 方法 
Title    Delete  Error  Info  Question  Warning   

All Message functions can have up to three buttons:

When invoked with only one argument, then there is only one "OK" button.

Message boxes are modal, i.e. the program is paused until one button is clicked.

When the message box is closed, the index of the clicked button is returned.

Example

PRINT Message("Program v0.3\\nVersion of 2006-03-28")
PRINT Message.Info("Program v0.3\\nVersion of 2006-03-28", "Fine")
PRINT Message.Warning("Your changes will be lost", "Save", "Ignore", "Cancel")