xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数
QCalendarWidget类 参考
类 QCalendarWidget 继承关系图:
QWidget

Public 成员函数

额外继承的成员函数

详细描述

在文件 QCalendarWidget.x4 行定义.

构造及析构函数说明

◆ QCalendarWidget() [1/2]

QCalendarWidget ( )

在文件 QCalendarWidget.x5 行定义.

5 {
6 }

◆ QCalendarWidget() [2/2]

QCalendarWidget ( long  handle)

在文件 QCalendarWidget.x8 行定义.

8 {
9 super(handle);
10 }

成员函数说明

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QCalendarWidget.x12 行定义.

12 {
13 nativehandle = QtXnl.createQObject(QType.qtCalendarWidget, this, 0);
14 if (nativehandle == 0){
15 return false;
16 }
17 return true;
18 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QCalendarWidget.x20 行定义.

20 {
21 nativehandle = QtXnl.createQObject(QType.qtCalendarWidget, this, parent.nativehandle);
22 if (nativehandle == 0){
23 return false;
24 }
25 return true;
26 }

◆ onActivated()

void onActivated ( int  y,
int  m,
int  d 
)

在文件 QCalendarWidget.x82 行定义.

82 {
83
84 }

◆ onClicked()

void onClicked ( int  y,
int  m,
int  d 
)

在文件 QCalendarWidget.x78 行定义.

78 {
79
80 }

◆ onCurrentPageChanged()

void onCurrentPageChanged ( int  y,
int  m 
)

在文件 QCalendarWidget.x86 行定义.

86 {
87
88 }

◆ onSelectionChanged()

void onSelectionChanged ( )
override

重载 QObject .

在文件 QCalendarWidget.x74 行定义.

74 {
75
76 }

◆ setCurrentPage()

void setCurrentPage ( int  year,
int  month 
)

在文件 QCalendarWidget.x37 行定义.

37 {
38 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETCURRENTPAGE, year, month, 0);
39 }

◆ setDateRange()

void setDateRange ( QDate  min,
QDate  max 
)

在文件 QCalendarWidget.x33 行定义.

33 {
34 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETDATERANGE, (min.year << 16) | max.year, (min.mon << 16) | max.mon, (min.day << 16) | max.day);
35 }

◆ setGridVisible()

void setGridVisible ( bool  show)

在文件 QCalendarWidget.x41 行定义.

41 {
42 QtXnl.widget_set_bool_value(nativehandle, Constant.QCW_SETGRIDVISIBLE, show);
43 }

◆ setNavigationBarVisible()

void setNavigationBarVisible ( bool  visible)

在文件 QCalendarWidget.x45 行定义.

45 {
46 QtXnl.widget_set_bool_value(nativehandle, Constant.QCW_SETNAVIGATIONBARVISIBLE, visible);
47 }

◆ setSelectedDate()

void setSelectedDate ( QDate  date)

在文件 QCalendarWidget.x29 行定义.

29 {
30 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETSELECTEDDATE, date.year, date.mon, date.day);
31 }

◆ showNextMonth()

void showNextMonth ( )

在文件 QCalendarWidget.x49 行定义.

49 {
50 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWNEXTMONTH);
51 }

◆ showNextYear()

void showNextYear ( )

在文件 QCalendarWidget.x57 行定义.

57 {
58 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWNEXTYEAR);
59 }

◆ showPreviousMonth()

void showPreviousMonth ( )

在文件 QCalendarWidget.x53 行定义.

53 {
54 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWPREVIOUSMONTH);
55 }

◆ showPreviousYear()

void showPreviousYear ( )

在文件 QCalendarWidget.x61 行定义.

61 {
62 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWPREVIOUSYEAR);
63 }

◆ showSelectedDate()

void showSelectedDate ( )

在文件 QCalendarWidget.x65 行定义.

65 {
66 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWSELECTEDDATE);
67 }

◆ showToday()

void showToday ( )

在文件 QCalendarWidget.x69 行定义.

69 {
70 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWTODAY);
71 }