Skip to main content

class Field

Source

Label, description, control and validation feedback in one layout.

Inherits from QWidget

Functions​

changeEvent​

protected void changeEvent(QEvent * )

control​

public QWidget * control()

Source

Field​

public Field(const QString & label, QWidget * parent)

setControl​

public void setControl(QWidget * control)

Reparents the control to this field. Replacing it detaches the old control without deleting it.

setLabel​

public void setLabel(const QString & label)

setDescription​

public void setDescription(const QString & description)

setError​

public void setError(const QString & error)

error​

public QString error()

setValidator​

public void setValidator(std::function<QString ()> validator)

validate​

public bool validate()