Thanks for advice, but at the end of the day, I don't know how!
The original issue came up when I was trying to do a MODBUS application, and I got it to work back then by doing what I'm doing now.
Like so...?
m_DataEccentricity[0] = block[21];
m_DataEccentricity[1] = block[22];
m_DataEccentricity[2] = block[23];
m_DataEccentricity[3] = block[24];
box.setText(m_DataEccentricity);
box.exec();
m_DataEccentricity[0] = block[21];
m_DataEccentricity[1] = block[22];
m_DataEccentricity[2] = block[23];
m_DataEccentricity[3] = block[24];
QMessageBox box;
box.setText(m_DataEccentricity);
box.exec();
To copy to clipboard, switch view to plain text mode
The camera (where we are reading inputs from) has gone down, so no way to test it right now.
Testing
box.setText(ba);
box.exec();
QByteArray ba("\xBD\xC6\xD6\x04");
QMessageBox box;
box.setText(ba);
box.exec();
To copy to clipboard, switch view to plain text mode
doesn't work though.
Bookmarks