problem using QSerialPort
-
Hi,
IIRC, your QSerialPort object won't get moved if your don't parent it.
-
@mzimmers said in problem using QSerialPort:
Good eye. Thanks for catching that. I'll update immediately.
Any way, your initialization seems not correct to me:
SerialPort::SerialPort(QObject *parent) : QObject (parent) { QSerialPort m_serialPort; connect(&m_serialPort, &QSerialPort::readyRead, this, &SerialPort::readSerial); ... }
should be, I think:
SerialPort::SerialPort(QObject *parent) : QObject (parent) , m_serialPort(new QSerialPort(this)) { connect(m_serialPort, &QSerialPort::readyRead, this, &SerialPort::readSerial); ... }
-
@KroMignon thanks...so a QByteArray object wouldn't be affected then.
It looks like the mechanics of updating have changed since I last used them. Is there a pre-built 5.14 for Windows available somewhere on github? EDIT: looks like the answer is "no;" I guess everyone builds their own now. Given my recent troubles trying to build a static Qt, I hope the directions in the 5.14 README are accurate.
I'm going to mark this solved, in anticipation that when I get a new Qt built, it'll work. Thanks for everyone's input on this.
-
You need now to use your Qt account to access the pre-built binaries (the same you use to post here)
-
The bug tracker is your friend :-)