選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

33 行
509 B

  1. #ifndef HMI_H
  2. #define HMI_H
  3. #include <QGraphicsScene>
  4. #include <QWidget>
  5. namespace Ui {
  6. class HMI;
  7. }
  8. class HMI : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit HMI(QWidget *parent = nullptr);
  13. ~HMI();
  14. void createComponents();
  15. protected:
  16. bool eventFilter(QObject *obj, QEvent *event) override;
  17. private slots:
  18. void onListwidgetCurrenttextchanged(const QString &currentText);
  19. private:
  20. Ui::HMI *ui;
  21. QGraphicsScene *m_scene;
  22. QString selectedComponentType;
  23. };
  24. #endif // HMI_H