<?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 it forbidden to change the baudrate after opening QSerialPort?]]></title><description><![CDATA[<p dir="auto">In the QSerialport documentation（<a href="https://doc.qt.io/qt-6/qserialport.html#baudRate" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qserialport.html#baudRate</a>).In the prop, it is stated that:</p>
<p dir="auto">Note: If the setting is set before opening the port, the actual serial port setting is done automatically in the QSerialPort::open() method right after that the opening of the port succeeds.</p>
<p dir="auto">This sentence seems to tacitly allow changing the baudrate after opening QSerilPort, and after trying this, I found that serial communication is normal.</p>
]]></description><link>https://forum.qt.io/topic/159430/is-it-forbidden-to-change-the-baudrate-after-opening-qserialport</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 16:29:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/159430.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Oct 2024 03:07:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it forbidden to change the baudrate after opening QSerialPort? on Mon, 28 Oct 2024 11:52:04 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">This sentence seems to tacitly allow changing the baudrate after opening QSerilPort, and after trying this, I found that serial communication is normal.</p>
</blockquote>
<p dir="auto">Yes, you can change the properties (baud rate, data bits, stop bits, etc) in any time.</p>
]]></description><link>https://forum.qt.io/post/813154</link><guid isPermaLink="true">https://forum.qt.io/post/813154</guid><dc:creator><![CDATA[kuzulis]]></dc:creator><pubDate>Mon, 28 Oct 2024 11:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to Is it forbidden to change the baudrate after opening QSerialPort? on Mon, 28 Oct 2024 03:14:09 GMT]]></title><description><![CDATA[<p dir="auto">The same docs, "If the setting is successful or set before opening the port, returns true; otherwise returns false and sets an error code which can be obtained by accessing the value of the QSerialPort::error property. "  So, if you get call setBaudRate() and get a true response then it worked.</p>
]]></description><link>https://forum.qt.io/post/813109</link><guid isPermaLink="true">https://forum.qt.io/post/813109</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Mon, 28 Oct 2024 03:14:09 GMT</pubDate></item></channel></rss>