#pragma once #include class BINARYNINJAUIAPI ClickableLabel: public QLabel { Q_OBJECT public: ClickableLabel(QWidget* parent = nullptr, const QString& name = ""): QLabel(parent) { setText(name); } Q_SIGNALS: void clicked(); protected: void mouseReleaseEvent(QMouseEvent* event) override { if (event->button() == Qt::LeftButton) Q_EMIT clicked(); } };