5#include <Kanoop/gui/libkanoopgui.h>
13class LIBKANOOPGUI_EXPORT
CheckBox :
public QCheckBox
16 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
30 explicit CheckBox(
const QString &text, QWidget *parent =
nullptr);
46 virtual void mousePressEvent(QMouseEvent* event)
override;
49 bool _readOnly =
false;
QCheckBox subclass with an optional read-only mode.
void setReadOnly(bool value)
Enable or disable the read-only mode.
bool isReadOnly() const
Return whether the checkbox is read-only.
CheckBox(const QString &text, QWidget *parent=nullptr)
Construct with initial label text.
CheckBox(QWidget *parent=nullptr)
Construct with an optional parent.