<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - Context-Menu</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/context-menu.tag.rss.xml" rel="self"/><lastBuildDate>Thu, 25 Mar 2021 09:00:00 +0000</lastBuildDate><item><title>Implementing "Open With" Context Menus in PyQt6 — Query your Linux desktop for available applications and let users choose how to open files</title><link>https://www.pythonguis.com/faq/right-click-open-with/</link><description>I'm finishing an application that has a custom context menu with "Open" and "Open Containing Folder" working. I can't seem to get an "Open With" option like you see in file explorers. Depending on the file type there would be different options &amp;mdash; so I don't think we're talking about predefined lists, but rather something extracted from the host OS. Any help with "Open With" would be greatly appreciated.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Thu, 25 Mar 2021 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2021-03-25:/faq/right-click-open-with/</guid><category>PyQt6</category><category>QMenu</category><category>Context-Menu</category><category>Linux</category><category>Desktop-Integration</category></item><item><title>How to Show a QMenu Title in PyQt6 — Adding visible titles to your context menus using QLabel, QWidgetAction, and other approaches</title><link>https://www.pythonguis.com/faq/how-to-show-qmenu-title/</link><description>If you've ever tried to set a title on a &lt;code&gt;QMenu&lt;/code&gt; in PyQt6, you've probably noticed something frustrating: calling &lt;code&gt;setTitle()&lt;/code&gt; on a menu doesn't actually display a title on the popup itself. The &lt;code&gt;title&lt;/code&gt; property on &lt;code&gt;QMenu&lt;/code&gt; is used for something else entirely &amp;mdash; it's the text that appears when the menu is added to a &lt;code&gt;QMenuBar&lt;/code&gt; (like "File", "Edit", etc.). When you show a &lt;code&gt;QMenu&lt;/code&gt; as a standalone context menu, that title is invisible.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Sun, 24 May 2020 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2020-05-24:/faq/how-to-show-qmenu-title/</guid><category>pyqt6</category><category>pyqt</category><category>python</category><category>qmenu</category><category>context-menu</category><category>qt</category><category>qt6</category></item></channel></rss>