You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
459 B

  1. #ifndef WIDGET_H
  2. #define WIDGET_H
  3. #include <QSerialPort>
  4. #include <QWidget>
  5. namespace Ui {
  6. class Widget;
  7. }
  8. class Widget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit Widget(QWidget *parent = 0);
  13. ~Widget();
  14. private slots:
  15. void on_btnConnect_clicked();
  16. void on_pushWrite_clicked();
  17. void on_SerialData_ReadyToRead();
  18. void on_btn_read_clicked();
  19. private:
  20. Ui::Widget *ui;
  21. QSerialPort *serialPort;
  22. };
  23. #endif // WIDGET_H