<?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[QComboBox popup menu]]></title><description><![CDATA[<p dir="auto">Curious, has anyone ever created their own ComboBox class inherited from QComboBox where you can emit a signal when the popmenu has been clicked and, of course, emit a signal once it is closed? It's just when the popup menu is clicked, the main ComboBox loses focus. I'm trying to capture the event of the popup, but I've never really worked with Event Filtering in QT. Any help would be most appreciated.</p>
]]></description><link>https://forum.qt.io/topic/69630/qcombobox-popup-menu</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 08:18:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/69630.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jul 2016 12:23:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QComboBox popup menu on Tue, 26 Jul 2016 14:59:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vronin">@<bdi>VRonin</bdi></a> Thank you so much! This is exactly what I was looking for. I appreciate your help!</p>
]]></description><link>https://forum.qt.io/post/339371</link><guid isPermaLink="true">https://forum.qt.io/post/339371</guid><dc:creator><![CDATA[HunterMetcalfe]]></dc:creator><pubDate>Tue, 26 Jul 2016 14:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to QComboBox popup menu on Tue, 26 Jul 2016 13:27:53 GMT]]></title><description><![CDATA[<p dir="auto">No need for event filtering just reimplement <code>showPopup</code> and <code>hidePopup</code></p>
<pre><code>#ifndef TESTCOMBO_H
#define TESTCOMBO_H

#include &lt;QComboBox&gt;

class TestCombo : public QComboBox
{
    Q_OBJECT
public:
    TestCombo(QWidget* parent=nullptr):QComboBox(parent){}
    virtual ~TestCombo()=default;
    virtual void hidePopup() override{
        emit menuHidden();
        QComboBox::hidePopup();
    }
    virtual void showPopup() override{
        emit menuPopped();
        QComboBox::showPopup();
    }
signals:
    void menuPopped();
    void menuHidden();
};

#endif // TESTCOMBO_H
</code></pre>
]]></description><link>https://forum.qt.io/post/339351</link><guid isPermaLink="true">https://forum.qt.io/post/339351</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Tue, 26 Jul 2016 13:27:53 GMT</pubDate></item></channel></rss>