kdk::KSecurityQuestionDialog(3)

NAME
kdk::KSecurityQuestionDialog - 继承自 KDialog，

SYNOPSIS

#include <ksecurityquestiondialog.h>

Inherits kdk::KDialog.

  Public Member Functions

KSecurityQuestionDialog (QWidget *parent=nullptr)
void setTitleText (const QString &text)
设置对话框标题
void addSecurityQuestionItem (const int count, bool mutex)
添加安全问题控件 Label combox Label lineedit tipsLabel
void addSecurityQuestionItem (const int count, bool mutex, bool isVerify)
添加安全问题控件 Label combox/lineedit Label lineedit tipsLabel
void initQustionCombox (const QStringList &questionlist)
添加下拉框选项列表
QLabel * questionLabel (const int questionIndex)
获取下拉框左侧Label
QComboBox * questionCombox (const int questionIndex)
获取combox
QLabel * answerLabel (const int answerIndex)
获取lineedit左侧label
QLineEdit * answerLineedit (const int answerIndex)
获取 lineedit
QLabel * tipsLabel (const int index)
获取提示 label
KPushButton * cancelButton ()
获取取消按钮
KPushButton * confirmButton ()
获取确认按钮

Public Member Functions inherited from kdk::KDialog
KDialog (QWidget *parent=nullptr)
void setWindowIcon (const QIcon &icon)
设置对话框图标
void setWindowIcon (const QString &iconName)
设置对话框图标
void setWindowTitle (const QString &)
设置对话框标题名称
QPushButton * maximumButton ()
获取最大化按钮
QPushButton * minimumButton ()
获取最小化按钮
QPushButton * closeButton ()
获取关闭按钮
KMenuButton * menuButton ()
获取下拉菜单按钮
QWidget * mainWidget ()
获取主内容区Widget
KWindowButtonBar * windowButtonBar ()
windowButtonBar
KIconBar * iconBar ()
iconBar

  Protected Member Functions

void keyPressEvent (QKeyEvent *)

Protected Member Functions inherited from kdk::KDialog
bool eventFilter (QObject *target, QEvent *event) override
void changeTheme ()
void changeIconStyle ()
QBoxLayout * mainLayout ()

Detailed Description

继承自 KDialog，

Since
    2.4.1.0

Member Function Documentation

  void kdk::KSecurityQuestionDialog::addSecurityQuestionItem (const int count, bool mutex)

添加安全问题控件 Label combox Label lineedit tipsLabel

Parameters
    count 控件个数
    mutex 是否开启下拉框互斥校验，若开启后，已被选择项，在其他下拉框中被置灰

  void kdk::KSecurityQuestionDialog::addSecurityQuestionItem (const int count, bool mutex, bool isVerify)

添加安全问题控件 Label combox/lineedit Label lineedit tipsLabel

Parameters
    count 控件个数
    mutex 是否开启下拉框互斥校验，若开启后，已被选择项，在其他下拉框中被置灰
    isVerify 是否为校验窗口

  QLabel * kdk::KSecurityQuestionDialog::answerLabel (const int answerIndex)

获取lineedit左侧label

Parameters
    answerIndex item索引 [0,count)

Returns
    QLabel lineedit左侧label，若未获取到，返回nullptr

  QLineEdit * kdk::KSecurityQuestionDialog::answerLineedit (const int answerIndex)

获取 lineedit

Parameters
    answerIndex item索引 [0,count)

Returns
    QLineEdit lineedit，若未获取到，返回nullptr

  KPushButton * kdk::KSecurityQuestionDialog::cancelButton ()

获取取消按钮

Returns
    KPushButton

  KPushButton * kdk::KSecurityQuestionDialog::confirmButton ()

获取确认按钮

Returns
    KPushButton

  void kdk::KSecurityQuestionDialog::initQustionCombox (const QStringList & questionlist)

添加下拉框选项列表

Parameters
    questionlist

  QComboBox * kdk::KSecurityQuestionDialog::questionCombox (const int questionIndex)

获取combox

Parameters
    questionIndex item索引 [0,count)

Returns
    QComboBox 下拉框，若未获取到，返回nullptr

  QLabel * kdk::KSecurityQuestionDialog::questionLabel (const int questionIndex)

获取下拉框左侧Label

Parameters
    questionIndex item索引 [0,count)

Returns
    QLabel 下拉框左侧Label，若未获取到，返回nullptr

  void kdk::KSecurityQuestionDialog::setTitleText (const QString & text)

设置对话框标题

Parameters
    text 标题

  QLabel * kdk::KSecurityQuestionDialog::tipsLabel (const int index)

获取提示 label

Parameters
    index item 索引 [0,count)

Returns
    QLabel 提示label，若未获取到，返回nullptr

Author

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