DtkWidget 5.6.0.2
DTK Widget module
|
DPasswordEdit提供了一个让用户输入的密码框. 更多...
信号 | |
void | echoModeChanged (bool echoOn) |
![]() | |
void | alertChanged (bool alert) const |
void | focusChanged (bool onFocus) const |
void | textChanged (const QString &) |
void | textEdited (const QString &) |
void | cursorPositionChanged (int, int) |
void | returnPressed () |
void | editingFinished () |
void | selectionChanged () |
Public 成员函数 | |
DPasswordEdit (QWidget *parent=nullptr) | |
DPasswordEdit的构造函数. 更多... | |
bool | isEchoMode () const |
void | setEchoMode (QLineEdit::EchoMode mode) |
设置显示模式 更多... | |
void | setEchoButtonIsVisible (bool visible) |
DPasswordEdit::setEchoButtonIsVisible 设置输入密码是否可见 visible true输入密码可见 false不可见 | |
bool | echoButtonIsVisible () const |
DPasswordEdit::echoButtonIsVisible 更多... | |
![]() | |
DLineEdit (QWidget *parent=nullptr) | |
DLineEdit的构造函数 parent 参数被发送到 QWidget 构造函数。 | |
QLineEdit * | lineEdit () const |
返回 QLineEdit 对象. 更多... | |
void | setPlaceholderText (const QString &) |
void | setAlert (bool isAlert) |
bool | isAlert () const |
void | showAlertMessage (const QString &text, int duration=3000) |
void | showAlertMessage (const QString &text, QWidget *follower, int duration=3000) |
显示警告消息. 更多... | |
void | setAlertMessageAlignment (Qt::Alignment alignment) |
指定对齐方式. 更多... | |
Qt::Alignment | alertMessageAlignment () const |
void | hideAlertMessage () |
隐藏警告消息框. | |
void | setLeftWidgets (const QList< QWidget * > &list) |
向输入框左侧添加控件. 更多... | |
void | setRightWidgets (const QList< QWidget * > &list) |
向输入框右侧添加控件. 更多... | |
void | setLeftWidgetsVisible (bool visible) |
是否隐藏输入框左侧控件. 更多... | |
void | setRightWidgetsVisible (bool visible) |
是否隐藏输入框右侧控件. 更多... | |
void | setClearButtonEnabled (bool enable) |
设置清除按钮是否可见. 更多... | |
bool | isClearButtonEnabled () const |
返回清除按钮是否可见. 更多... | |
void | setText (const QString &text) |
设置显示的文本. 更多... | |
QString | text () |
返回当前显示的文本. 更多... | |
void | clear () |
清空编辑的内容. | |
QLineEdit::EchoMode | echoMode () const |
返回输入框的回显模式. 更多... | |
void | setEchoMode (QLineEdit::EchoMode mode) |
设置回显的模式. 更多... | |
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
设置行编辑控件的文本菜单策略. 更多... | |
bool | speechToTextIsEnabled () const |
返回是否显示语音听写菜单项. 更多... | |
void | setSpeechToTextEnabled (bool enable) |
设置是否显示语音听写菜单项. 更多... | |
bool | textToSpeechIsEnabled () const |
返回是否显示语音朗读菜单项. 更多... | |
void | setTextToSpeechEnabled (bool enable) |
设置是否显示语音朗读菜单项. 更多... | |
bool | textToTranslateIsEnabled () const |
返回是否显示文本翻译菜单项. 更多... | |
void | setTextToTranslateEnabled (bool enable) |
设置是否显示文本翻译菜单项 更多... | |
bool | copyEnabled () const |
DLineEdit::copyEnabled 更多... | |
void | setCopyEnabled (bool enable) |
DLineEdit::setCopyEnabled 设置输入文本是否可拷贝 enabled true输入文本可拷贝 false不可拷贝 | |
bool | cutEnabled () const |
DLineEdit::cutEnabled 更多... | |
void | setCutEnabled (bool enable) |
DLineEdit::setCutEnabled 设置输入文本是否可拷贝 enabled true输入文本可剪切 false不可剪切 | |
属性 | |
bool | isEchoMode |
该属性会控制用户输入是否可见. 更多... | |
![]() | |
bool | alert |
警告模式属性. 更多... | |
额外继承的成员函数 | |
![]() | |
DLineEdit (DLineEditPrivate &q, QWidget *parent) | |
bool | eventFilter (QObject *watched, QEvent *event) override |
事件过滤器 更多... | |
bool | event (QEvent *event) override |
DPasswordEdit提供了一个让用户输入的密码框.
\inmodule dtkwidget
The DPasswordEdit class provides a widget to let user input password.
Dtk::Widget::DPasswordEdit::DPasswordEdit | ( | QWidget * | parent = nullptr | ) |
DPasswordEdit的构造函数.
DPasswordEdit::DPasswordEdit constructs an instance of DPasswordEdit.
parent is passed to DLineEdit constructor.
bool Dtk::Widget::DPasswordEdit::echoButtonIsVisible | ( | ) | const |
DPasswordEdit::echoButtonIsVisible
void Dtk::Widget::DPasswordEdit::setEchoMode | ( | QLineEdit::EchoMode | mode | ) |
设置显示模式
|
read |
该属性会控制用户输入是否可见.
This property holds whether the user input should be displayed directly or show as dots.