<?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[is QSerialPortInfo::availablePorts() blocking on Windows]]></title><description><![CDATA[<p dir="auto">I have found out, that when I plug USB device into the computer, there is some extra time needed, until the function returns back. That happens only when the device is enumerated. Once done, function returns immediately. Knowing that, I have tried to moved this calls to the different thread and surprisingly it blocks the GUI threads as well. Blocking is about 1-2 seconds.</p>
<p dir="auto">is that expected behavior? Shall I move it to separate process ?</p>
<p dir="auto">Thank you, Jan</p>
]]></description><link>https://forum.qt.io/topic/134183/is-qserialportinfo-availableports-blocking-on-windows</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 21:24:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/134183.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Feb 2022 21:59:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to is QSerialPortInfo::availablePorts() blocking on Windows on Thu, 10 Feb 2022 08:14:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jan-krejsa">@<bdi>Jan-Krejsa</bdi></a> said in <a href="/post/701849">is QSerialPortInfo::availablePorts() blocking on Windows</a>:</p>
<blockquote>
<p dir="auto">I have tried to moved this calls to the different thread and surprisingly it blocks the GUI threads as well.</p>
</blockquote>
<p dir="auto">Can you show how you did it?</p>
]]></description><link>https://forum.qt.io/post/702026</link><guid isPermaLink="true">https://forum.qt.io/post/702026</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 10 Feb 2022 08:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to is QSerialPortInfo::availablePorts() blocking on Windows on Wed, 09 Feb 2022 15:41:51 GMT]]></title><description><![CDATA[<p dir="auto">You could call it with a QtConcurrent::run() and use a QFutureWatcher to call a slot that processes the results. That way it should be asynchronous and not block the UI.</p>
]]></description><link>https://forum.qt.io/post/701946</link><guid isPermaLink="true">https://forum.qt.io/post/701946</guid><dc:creator><![CDATA[mchinand]]></dc:creator><pubDate>Wed, 09 Feb 2022 15:41:51 GMT</pubDate></item></channel></rss>