0

I am currently developing a Qt application which has a window and a serial port module.

My problem is that when I press on the window or move it, the reception of the QSerialPort module (with the readyRead() signal) is blocked. The reception only resumes when I stop acting on the window.

It seems that this is a known problem: https://bugreports.qt.io/browse/QTBUG-34946

However, I am currently in version 5.15.2. Where do you think the problem can come from and what could be the solution?

Martin Denion
  • 352
  • 1
  • 3
  • 22
  • Please provide the code that causes the problem -- preferably in the form of a [mcve]. Also provide OS and Qt version info. What makes you think data reception is being blocked? Are you sure it's not just visual indication (debug output etc.) of the data being received that's being blocked until the window operation finishes? – G.M. Mar 01 '22 at 09:18
  • The serial receive is very probably blocked because your event loop is stuck while the window is being grabbed - Put your serial code into a seperate thread to make it unaffected. – tofro Mar 01 '22 at 10:59

0 Answers0