◆ QLineEdit() [1/2]
◆ QLineEdit() [2/2]
◆ create() [1/2]
重载 QWidget .
在文件 QLineEdit.xcsm 第 14 行定义.
14 {
15 nativehandle = QtXnl.createQObject(QType.qtLineEdit,
this, 0);
16 if (nativehandle == 0){
17 return false;
18 }
19 return true;
20 }
◆ create() [2/2]
bool create |
( |
@NotNilptr QWidget |
parent | ) |
|
|
override |
重载 QWidget .
在文件 QLineEdit.xcsm 第 22 行定义.
22 {
23 nativehandle = QtXnl.createQObject(QType.qtLineEdit,
this, parent.nativehandle);
24 if (nativehandle == 0){
25 return false;
26 }
27 return true;
28 }
◆ getText()
在文件 QLineEdit.xcsm 第 47 行定义.
47 {
48 String __txt = (
String)QtXnl.core_getString(nativehandle, Constant.LINEEDITGETTEXT);
49 __nilptr_safe(__txt);
50 return __txt;
51 }
◆ placeholderText()
在文件 QLineEdit.xcsm 第 41 行定义.
41 {
42 return (
String)QtXnl.core_getString(nativehandle, Constant.LEGETPLACEHOLDERTEXT);
43 }
◆ setEchoMode()
void setEchoMode |
( |
EchoMode |
em | ) |
|
在文件 QLineEdit.xcsm 第 35 行定义.
35 {
36 QtXnl.widget_set_vint_value(nativehandle, Constant.QLINESETECHOMODE, em.value());
37 }
◆ setMaxLength()
void setMaxLength |
( |
int |
maxlen | ) |
|
在文件 QLineEdit.xcsm 第 32 行定义.
32 {
33 QtXnl.widget_set_vint_value(nativehandle, Constant.QLINESETMAXLEN, maxlen);
34 }
◆ setPlaceholderText()
void setPlaceholderText |
( |
String |
placeholderText | ) |
|
在文件 QLineEdit.xcsm 第 38 行定义.
38 {
39 QtXnl.widget_slot_string(nativehandle, Constant.LESETPLACEHOLDERTEXT, placeholderText);
40 }
◆ setText()
在文件 QLineEdit.xcsm 第 29 行定义.
29 {
30 QtXnl.widget_slot_string(nativehandle, Constant.LINEEDITSETTEXT, text);
31 }
◆ setValidator()
void setValidator |
( |
String |
regex | ) |
|
在文件 QLineEdit.xcsm 第 44 行定义.
44 {
45 QtXnl.widget_slot_string(nativehandle, Constant.QLEDITSETVALIDATOR, regex);
46 }
◆ NoEcho
◆ Normal
◆ Password
◆ PasswordEchoOnEdit
const int PasswordEchoOnEdit = 3 |
|
staticpackage |