identifier and initializer errors in extracted example code
-
-
@JonB here it is #ifndef MAINWINDOW_H
#define MAINWINDOW_H#include <QMainWindow>
#include <QApplication>
#include <QLabel>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
#include <QtSerialPort/QSerialPortInfo>
#include <QtSerialPort>
#include <QLineEdit>
#include <QByteArray>#include <iostream>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACEclass MainWindow : public QMainWindow
{
Q_OBJECTsignals:
void getData(const QByteArray &data);public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void putData(const QByteArray &data);private slots:
void sendMessage();
void inputGet();
void receiveMessage();
void readData();
void on_horizontalSlider_sliderReleased();private:
Ui::MainWindow *ui;
QLabel *label;};
#endif // MAINWINDOW_H
I know there is nothing here related to m_serial, but the terminal example has nothing as well... -