Scroll to navigation

kdk::KPasswordEdit(3) Library Functions Manual kdk::KPasswordEdit(3)

NAME

kdk::KPasswordEdit - 密码输入框,继承于QLineEdit,支持三种不同状态显示

SYNOPSIS

#include <kpasswordedit.h>

Inherits QLineEdit.

Public Member Functions


KPasswordEdit (QWidget *parent)
void setState (LoginState state)
设置状态 LoginState state ()
返回状态 void setLoading (bool flag)
设置加载状态 bool isLoading ()
判断是否处于加载状态 QString placeholderText ()
返回placeholderText void setPlaceholderText (QString &text)
设置PlaceholderText void setClearButtonEnabled (bool enable)
设置是否启用ClearButton bool isClearButtonEnabled () const
返回是否启用了ClearButton void setEchoModeBtnVisible (bool enable)
设置EchoModeBtn是否可见 bool echoModeBtnVisible ()
返回EchoModeBtn是否可见 void setClearBtnVisible (bool enable)
设置ClearBtn是否可见 bool clearBtnVisible ()
返回ClearBtn是否可见 void setEnabled (bool)
设置KLineEdit是否可用 void setEchoMode (EchoMode mode)
setEchoMode void setUseCustomPalette (bool flag)
设置是否走默认palette

Protected Member Functions


void resizeEvent (QResizeEvent *event)
bool eventFilter (QObject *watched, QEvent *event)
QSize sizeHint () const override

Detailed Description

密码输入框,继承于QLineEdit,支持三种不同状态显示

Examples
testpasswordedit/widget.h.

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.

Version version:3.0 LIBKYSDK-APPLICATIONS