<?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[Syntax : QFileDialog.Options()]]></title><description><![CDATA[<p dir="auto">Hi, I'm a newbie who want to learn how to use Qt for my project.<br />
I found several online examples of using <strong>QFileDialog.Options</strong> something like this :</p>
<pre><code>def saveFileDialog(self):
    options = QFileDialog.Options()
    options |= QFileDialog.DontUseNativeDialog
</code></pre>
<p dir="auto">I'm just curious of the notation "<strong>|=</strong>", what's its use in these context? Or, it's just a <em>typo</em>?<br />
Hopefully someone in the forum willing to answer my curiosity.... :-)<br />
Many thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/117748/syntax-qfiledialog-options</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 04:05:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/117748.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Aug 2020 04:29:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntax : QFileDialog.Options() on Thu, 06 Aug 2020 05:33:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/catacomb">@<bdi>Catacomb</bdi></a> said in <a href="/post/610812">Syntax : QFileDialog.Options()</a>:</p>
<blockquote>
<p dir="auto">options |= QFileDialog.DontUseNativeDialog</p>
</blockquote>
<p dir="auto">This is not Qt specific. This line is same as</p>
<pre><code>options = options | QFileDialog.DontUseNativeDialog
</code></pre>
<p dir="auto">but shorter.<br />
You should read about Python operators.</p>
]]></description><link>https://forum.qt.io/post/610822</link><guid isPermaLink="true">https://forum.qt.io/post/610822</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 06 Aug 2020 05:33:39 GMT</pubDate></item></channel></rss>