<?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[What can I do if I want to blocked waiting for QModbusReply]]></title><description><![CDATA[<p dir="auto">I am using QModbusClient object as a modbus tcp master.  I refered the example ,but  it implement by  async mode(connect to finished signals). But now ,because of some reason ,I want to wait the reply blocked.I tryied call "isFinished" API  like :<br />
while(reply-&gt;isFinished()){<br />
//wait<br />
}<br />
, but it always retured false，I don‘t know why，Any suggestion？<br />
THANKS！！</p>
]]></description><link>https://forum.qt.io/topic/138193/what-can-i-do-if-i-want-to-blocked-waiting-for-qmodbusreply</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 21:01:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138193.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Jul 2022 01:29:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What can I do if I want to blocked waiting for QModbusReply on Thu, 28 Jul 2022 02:10:44 GMT]]></title><description><![CDATA[<p dir="auto">I modify the code as your suggestion,it works well,thanks a lot</p>
]]></description><link>https://forum.qt.io/post/722975</link><guid isPermaLink="true">https://forum.qt.io/post/722975</guid><dc:creator><![CDATA[coderKnight]]></dc:creator><pubDate>Thu, 28 Jul 2022 02:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to What can I do if I want to blocked waiting for QModbusReply on Wed, 27 Jul 2022 07:56:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coderknight">@<bdi>coderKnight</bdi></a> Use a local event loop (<a href="https://doc.qt.io/qt-6/qeventloop.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qeventloop.html</a>). Connect the finished sginal from the reply with <a href="https://doc.qt.io/qt-6/qeventloop.html#exit" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qeventloop.html#exit</a> then start the request and the local event loop (<a href="https://doc.qt.io/qt-6/qeventloop.html#exec" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qeventloop.html#exec</a>&gt;)</p>
]]></description><link>https://forum.qt.io/post/722861</link><guid isPermaLink="true">https://forum.qt.io/post/722861</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 27 Jul 2022 07:56:37 GMT</pubDate></item></channel></rss>