Skip to main content

class InputOTP

Source

Segmented code input with paste, arrows, deletion and completion signals.

Inherits from QLineEdit

Functions​

codeChanged​

public void codeChanged(const QString & code)

length​

public int length()

Source

InputOTP​

public InputOTP(int length, QWidget * parent)

code​

public QString code()

setCode​

public bool setCode(const QString & code)

setAlphanumeric​

public void setAlphanumeric(bool enabled)

sizeHint​

public QSize sizeHint()

completed​

public void completed(const QString & code)

event​

protected bool event(QEvent * )

paintEvent​

protected void paintEvent(QPaintEvent * )

mousePressEvent​

protected void mousePressEvent(QMouseEvent * )

mouseMoveEvent​

protected void mouseMoveEvent(QMouseEvent * )