<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QSerialPort readyRead() signal not emited]]></title><description><![CDATA[<pre><code>connect(serialScanner-&gt;serialPort, SIGNAL(readyRead()), serialScanner, SLOT(handleReadyRead()));
</code></pre>
<p dir="auto">Why is it than with the respective serial port opened, my code never gets into the connected function that is handleReadyRead()?</p>
<p dir="auto">The code below is my alternative implementation within the class constructor, so as everything has the same scope.</p>
<pre><code>if (scanConnectedSerialDevices()){
       serialPort = new QSerialPort();
       portPath = serialPortName;
       serialPort-&gt;setPortName(portPath);
       qDebug()&lt;&lt;serialPort-&gt;portName();
       serialPort-&gt;setBaudRate(this-&gt;serialPortBaudeRate);
       connect(serialPort, SIGNAL(readyRead()), this, SLOT(handleReadyRead()));        
       connect(serialPort, SIGNAL(bytesWritten(qint64)), this, SLOT(handleBytesWritten(qint64)));
       serialPort.openPort(QIODevice::ReadOnly);
</code></pre>
<p dir="auto"><strong>edit: Changing the Device, thus the Driver due to the scanner being from a different manufacturer my code works just fine??????</strong></p>
]]></description><link>https://forum.qt.io/topic/116949/qserialport-readyread-signal-not-emited</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 08:27:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/116949.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2020 08:07:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QSerialPort readyRead() signal not emited on Thu, 16 Jul 2020 07:33:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vrasi">@<bdi>VrasI</bdi></a><br />
Hi<br />
But if same code works with another scanner on same pc, doesn't that mean the<br />
the first scanner is not really working?</p>
]]></description><link>https://forum.qt.io/post/607134</link><guid isPermaLink="true">https://forum.qt.io/post/607134</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Thu, 16 Jul 2020 07:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialPort readyRead() signal not emited on Thu, 16 Jul 2020 07:27:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> I do use it... No error gets returned</p>
]]></description><link>https://forum.qt.io/post/607133</link><guid isPermaLink="true">https://forum.qt.io/post/607133</guid><dc:creator><![CDATA[VrasI]]></dc:creator><pubDate>Thu, 16 Jul 2020 07:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialPort readyRead() signal not emited on Thu, 16 Jul 2020 05:38:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vrasi">@<bdi>VrasI</bdi></a> I suggest to add error handling:<br />
<a href="https://doc.qt.io/qt-5/qserialport.html#error-prop" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qserialport.html#error-prop</a><br />
<a href="https://doc.qt.io/qt-5/qserialport.html#errorOccurred" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qserialport.html#errorOccurred</a><br />
<a href="https://doc.qt.io/qt-5/qiodevice.html#errorString" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qiodevice.html#errorString</a></p>
]]></description><link>https://forum.qt.io/post/607128</link><guid isPermaLink="true">https://forum.qt.io/post/607128</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 16 Jul 2020 05:38:41 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialPort readyRead() signal not emited on Thu, 16 Jul 2020 05:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> It Returns TRUE. The port gets succesfully opened</p>
]]></description><link>https://forum.qt.io/post/607127</link><guid isPermaLink="true">https://forum.qt.io/post/607127</guid><dc:creator><![CDATA[VrasI]]></dc:creator><pubDate>Thu, 16 Jul 2020 05:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to QSerialPort readyRead() signal not emited on Mon, 13 Jul 2020 08:11:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vrasi">@<bdi>VrasI</bdi></a> said in <a href="/post/606409">QSerialPort readyRead() signal not emited</a>:</p>
<blockquote>
<p dir="auto">serialPort.openPort(QIODevice::ReadOnly);</p>
</blockquote>
<p dir="auto">What does it return?</p>
]]></description><link>https://forum.qt.io/post/606411</link><guid isPermaLink="true">https://forum.qt.io/post/606411</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 13 Jul 2020 08:11:08 GMT</pubDate></item></channel></rss>