<?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[How to suggest improvements to the code?]]></title><description><![CDATA[<p dir="auto">How do I suggest changes or improvements to the code for PyQt5? I'm currently making a program and would like to call multiple methods subsequently without making new lines like so:</p>
<pre><code>widget.method1().method2().method3()
</code></pre>
<p dir="auto">It's really easy to implement this but I don't know where to suggest this improvement. Anyone have any suggestions?</p>
]]></description><link>https://forum.qt.io/topic/139241/how-to-suggest-improvements-to-the-code</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 01:22:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139241.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2022 02:38:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to suggest improvements to the code? on Mon, 12 Sep 2022 07:51:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tyson1123">@<bdi>Tyson1123</bdi></a> said in <a href="/post/728257">How to suggest improvements to the code?</a>:</p>
<blockquote>
<p dir="auto"><code>widget.method1().method2().method3()</code></p>
<p dir="auto">It's really easy to implement this but I don't know where to suggest this improvement</p>
</blockquote>
<p dir="auto">Hello and welcome.  No, it is not "really easy" to implement this.  It would require changing the <em>return type</em> of each <code>QWidget</code> method to return the widget/<code>self</code> instance.  It is common to "chain" method calls in this way in, say, JavaScript or jQuery, but not at all so in C++ or Python.  It is not going to happen in Qt code, we are quite happy with three separate statements for the above, as has always been the case.</p>
]]></description><link>https://forum.qt.io/post/728288</link><guid isPermaLink="true">https://forum.qt.io/post/728288</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 12 Sep 2022 07:51:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to suggest improvements to the code? on Mon, 12 Sep 2022 06:15:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tyson1123">@<bdi>Tyson1123</bdi></a> said in <a href="/post/728257">How to suggest improvements to the code?</a>:</p>
<blockquote>
<p dir="auto">widget.method1().method2().method3()</p>
</blockquote>
<p dir="auto">This would only work if method1 and method2 return "self".</p>
<p dir="auto">For reporting bugs and change requests: <a href="https://wiki.qt.io/Qt_for_Python/Reporting_Bugs" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/Qt_for_Python/Reporting_Bugs</a></p>
]]></description><link>https://forum.qt.io/post/728268</link><guid isPermaLink="true">https://forum.qt.io/post/728268</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 12 Sep 2022 06:15:39 GMT</pubDate></item></channel></rss>