InputBoxModule(3) Library Functions Manual InputBoxModule(3)

InputBoxModule - InputBoxModule


class kdk::KPasswordEdit
密码输入框,继承于QLineEdit,支持三种不同状态显示 class kdk::KSearchLineEdit
搜索输入框,可搜索匹配条件的item


enum kdk::LoginState { Ordinary, LoginSuccess, LoginFailed }
支持三种状态


kdk::KPasswordEdit::KPasswordEdit (QWidget *parent)
void kdk::KPasswordEdit::setState (LoginState state)
设置状态 LoginState kdk::KPasswordEdit::state ()
返回状态 void kdk::KPasswordEdit::setLoading (bool flag)
设置加载状态 bool kdk::KPasswordEdit::isLoading ()
判断是否处于加载状态 QString kdk::KPasswordEdit::placeholderText ()
返回placeholderText void kdk::KPasswordEdit::setPlaceholderText (QString &text)
设置PlaceholderText void kdk::KPasswordEdit::setClearButtonEnabled (bool enable)
设置是否启用ClearButton bool kdk::KPasswordEdit::isClearButtonEnabled () const
返回是否启用了ClearButton void kdk::KPasswordEdit::setEchoModeBtnVisible (bool enable)
设置EchoModeBtn是否可见 bool kdk::KPasswordEdit::echoModeBtnVisible ()
返回EchoModeBtn是否可见 void kdk::KPasswordEdit::setClearBtnVisible (bool enable)
设置ClearBtn是否可见 bool kdk::KPasswordEdit::clearBtnVisible ()
返回ClearBtn是否可见 void kdk::KPasswordEdit::setEnabled (bool)
设置KLineEdit是否可用 void kdk::KPasswordEdit::setEchoMode (EchoMode mode)
setEchoMode void kdk::KPasswordEdit::setUseCustomPalette (bool flag)
设置是否走默认palette void kdk::KPasswordEdit::resizeEvent (QResizeEvent *event)
bool kdk::KPasswordEdit::eventFilter (QObject *watched, QEvent *event)
QSize kdk::KPasswordEdit::sizeHint () const override
kdk::KSearchLineEdit::KSearchLineEdit (QWidget *parent=nullptr)
void kdk::KSearchLineEdit::setEnabled (bool)
设置是否可用 bool kdk::KSearchLineEdit::isEnabled ()
返回是否可用 void kdk::KSearchLineEdit::setClearButtonEnabled (bool enable)
设置是否显示清除按钮 bool kdk::KSearchLineEdit::isClearButtonEnabled () const
返回是否显示清除按钮 QString kdk::KSearchLineEdit::placeholderText () const
返回placeholder void kdk::KSearchLineEdit::setPlaceholderText (const QString &)
设置placeholder Qt::Alignment kdk::KSearchLineEdit::placeholderAlignment () const
返回placeholder的对齐方式 void kdk::KSearchLineEdit::setPlaceholderAlignment (Qt::Alignment flag)
设置placeholder的对齐方式 Qt::Alignment kdk::KSearchLineEdit::alignment () const
设置输入文本的对齐方式 void kdk::KSearchLineEdit::setAlignment (Qt::Alignment flag)
设置输入文本的对齐方式返回 void kdk::KSearchLineEdit::setTranslucent (bool flag)
设置是否启用半透明效果 bool kdk::KSearchLineEdit::isTranslucent ()
获取是否启用半透明效果 void kdk::KSearchLineEdit::reloadStyle ()
重新加载style KToolButton * kdk::KSearchLineEdit::customButton ()
获取自定义按钮 void kdk::KSearchLineEdit::setGradation (bool flag)
是否启用渐变色 void kdk::KSearchLineEdit::setCustomButtonVisible (bool flag)
设置智能语义按钮是否可见 bool kdk::KSearchLineEdit::isCustomButtonVisible ()
返回智能语义按钮是否可见 bool kdk::KSearchLineEdit::eventFilter (QObject *watched, QEvent *event)
void kdk::KSearchLineEdit::resizeEvent (QResizeEvent *event)
void kdk::KSearchLineEdit::setVisible (bool visible)
void kdk::KSearchLineEdit::paintEvent (QPaintEvent *event)
QSize kdk::KSearchLineEdit::sizeHint () const override


void kdk::KSearchLineEdit::clear ()

Since

2.5.2.0 {

支持三种状态

Since

1.0.0

设置输入文本的对齐方式

Returns

返回ClearBtn是否可见

Returns

Since

1.2.0

KToolButton * kdk::KSearchLineEdit::customButton ()

获取自定义按钮

Returns

Since

2.4.1.0

返回EchoModeBtn是否可见

Returns

Since

1.2.0

返回是否启用了ClearButton

Returns

返回是否显示清除按钮

Returns

返回智能语义按钮是否可见

Returns

bool

Since

2.4.1.0

返回是否可用

Returns

判断是否处于加载状态

Returns

获取是否启用半透明效果

Since

1.2.0

Returns

flag

返回placeholder的对齐方式

Returns

返回placeholderText

Returns

返回placeholder

Returns

重新加载style

Since

2.0.2.1

设置输入文本的对齐方式返回

Returns

设置ClearBtn是否可见

Returns

Since

1.2.0

设置是否启用ClearButton

Parameters

enable

设置是否显示清除按钮

Returns

设置智能语义按钮是否可见

Parameters

flag

Since

2.4.1.0

setEchoMode

Since

1.2.0

设置EchoModeBtn是否可见

Returns

Since

1.2.0

设置KLineEdit是否可用

Returns

是否启用渐变色

Parameters

flag

Since

2.4.1.0

设置加载状态

Parameters

flag

设置placeholder的对齐方式

Returns

设置placeholder

Returns

设置PlaceholderText

Parameters

text

设置状态

Parameters

state

设置是否启用半透明效果

Since

1.2.0

Parameters

flag

设置是否走默认palette

Parameters

flag

Since

1.2.0

LoginState kdk::KPasswordEdit::state ()

返回状态

Returns

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

Version version:3.0 LIBKYSDK-APPLICATIONS