#ifndef PLC_H #define PLC_H #include #include namespace Ui { class PLC; } class PLC : public QWidget { Q_OBJECT public: explicit PLC(QWidget *parent = nullptr); ~PLC(); void createComponents(); protected: bool eventFilter(QObject *obj, QEvent *event) override; private slots: void onListwidgetCurrenttextchanged(const QString ¤tText); void btnInsertClicked(); private: Ui::PLC *ui; QGraphicsScene *m_scene; QString selectedComponentType; }; #endif // PLC_H