RB_ningyang/SerialConfig.h

39 lines
703 B
C
Raw Normal View History

2026-01-22 11:08:28 +00:00
#ifndef SERIALCONFIG_H
#define SERIALCONFIG_H
#include <QDialog>
#include <QComboBox>
#include <QLabel>
#include <QFormLayout>
#include <QDialogButtonBox>
#include <QPushButton>
class SerialConfig : public QDialog {
Q_OBJECT
public:
SerialConfig(QWidget *parent = nullptr);
QString getSerialPort() const;
QString getBaudRate() const;
QString getDataBits() const;
QString getStopBits() const;
QString getParity() const;
void scanSerialPorts();
private slots:
private:
QComboBox *serialPortComboBox;
QComboBox *baudRateComboBox;
QComboBox *dataBitsComboBox;
QComboBox *stopBitsComboBox;
QComboBox *parityComboBox;
};
#endif // SERIALCONFIG_H