xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | Public 成员函数 | 静态包属性
QLineEdit类 参考
类 QLineEdit 继承关系图:
QWidget

结构体

enum  EchoMode
 

Public 成员函数

静态包属性

额外继承的成员函数

详细描述

在文件 QLineEdit.xcsm3 行定义.

构造及析构函数说明

◆ QLineEdit() [1/2]

QLineEdit ( )

在文件 QLineEdit.xcsm6 行定义.

6 {
7
8 }

◆ QLineEdit() [2/2]

QLineEdit ( long  handle)

在文件 QLineEdit.xcsm10 行定义.

10 {
11 super(handle);
12 }

成员函数说明

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QLineEdit.xcsm14 行定义.

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

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QLineEdit.xcsm22 行定义.

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

◆ getText()

String getText ( )

在文件 QLineEdit.xcsm47 行定义.

47 {
48 String __txt = (String)QtXnl.core_getString(nativehandle, Constant.LINEEDITGETTEXT);
49 __nilptr_safe(__txt);
50 return __txt;
51 }
字符串类

◆ placeholderText()

String placeholderText ( )

在文件 QLineEdit.xcsm41 行定义.

41 {
42 return (String)QtXnl.core_getString(nativehandle, Constant.LEGETPLACEHOLDERTEXT);
43 }

◆ setEchoMode()

void setEchoMode ( EchoMode  em)

在文件 QLineEdit.xcsm35 行定义.

35 {
36 QtXnl.widget_set_vint_value(nativehandle, Constant.QLINESETECHOMODE, em.value());
37 }

◆ setMaxLength()

void setMaxLength ( int  maxlen)

在文件 QLineEdit.xcsm32 行定义.

32 {
33 QtXnl.widget_set_vint_value(nativehandle, Constant.QLINESETMAXLEN, maxlen);
34 }

◆ setPlaceholderText()

void setPlaceholderText ( String  placeholderText)

在文件 QLineEdit.xcsm38 行定义.

38 {
39 QtXnl.widget_slot_string(nativehandle, Constant.LESETPLACEHOLDERTEXT, placeholderText);
40 }

◆ setText()

void setText ( String  text)

在文件 QLineEdit.xcsm29 行定义.

29 {
30 QtXnl.widget_slot_string(nativehandle, Constant.LINEEDITSETTEXT, text);
31 }

◆ setValidator()

void setValidator ( String  regex)

在文件 QLineEdit.xcsm44 行定义.

44 {
45 QtXnl.widget_slot_string(nativehandle, Constant.QLEDITSETVALIDATOR, regex);
46 }

结构体成员变量说明

◆ NoEcho

const int NoEcho = 1
staticpackage

在文件 QLineEdit.xcsm4 行定义.

◆ Normal

const int Normal = 0
staticpackage

在文件 QLineEdit.xcsm4 行定义.

◆ Password

const int Password = 2
staticpackage

在文件 QLineEdit.xcsm4 行定义.

◆ PasswordEchoOnEdit

const int PasswordEchoOnEdit = 3
staticpackage

在文件 QLineEdit.xcsm4 行定义.