<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - garbage-collection</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/garbage-collection.tag.rss.xml" rel="self"/><lastBuildDate>Fri, 15 Jan 2021 09:00:00 +0000</lastBuildDate><item><title>QSystemTrayIcon — Adding Menu Items in a Loop — Why dynamically created QActions disappear and how to fix it</title><link>https://www.pythonguis.com/faq/qsystemtrayicon-example/</link><description>I'm trying to populate a &lt;code&gt;QSystemTrayIcon&lt;/code&gt; context menu using a for loop, but only the last item shows up. What happened to the other entries, and how do I fix it?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Fri, 15 Jan 2021 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2021-01-15:/faq/qsystemtrayicon-example/</guid><category>pyqt6</category><category>python</category><category>qsystemtrayicon</category><category>qaction</category><category>qmenu</category><category>garbage-collection</category><category>qt</category><category>qt6</category></item></channel></rss>