xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QDialog.xcsm
浏览该文件的文档.
1package Qt{
2 @SuppressWarnings public class QDialog : QWidget{
3 public QDialog(){
4
5 }
6
7 public QDialog(long handle){
8 super(handle);
9 }
10
11 public bool create()override {
12 nativehandle = QtXnl.createQObject(QType.qtDialog, this, 0);
13 if (nativehandle == 0){
14 return false;
15 }
16 return true;
17 }
18
19 public bool create(@NotNilptr QWidget parent)override {
20 nativehandle = QtXnl.createQObject(QType.qtDialog, this, parent.nativehandle);
21 if (nativehandle == 0){
22 return false;
23 }
24 return true;
25 }
26
27 public int exec(){
28 return QtXnl.widget_get_int_value(nativehandle, Constant.PRTDLGEXEC);
29 }
30
31
32 public void done(int result){
33 QtXnl.widget_set_vint_value(nativehandle, Constant.PRTDLGDONE, result);
34 }
35 };
36};
int exec()
Definition QDialog.xcsm:27
bool create() override
Definition QDialog.xcsm:11
void done(int result)
Definition QDialog.xcsm:32
bool create(@NotNilptr QWidget parent) override
Definition QDialog.xcsm:19