<?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[Hover color of QComboBox is Not fixing ?]]></title><description><![CDATA[<p dir="auto">Hi  I tried to fix the hover color of the comboBox but it is not working . I wan it to be something rgb(242,243,243 but it has default color i.e blue</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/644250e1-6cad-4503-9723-75a778a36718.PNG" alt="comboxhoverColor.PNG" class=" img-fluid img-markdown" /></p>
<pre><code>    this-&gt;setStyleSheet(
                "QLabel{ "
                "font-family: Helvetica;"
                "font-weight: normal;"
                "font-size: 9pt;"
                "color: rgb(72,79,83);"
                "}"

                "QComboBox {"
                "background-color: rgb(255,255,255);"
                "border-top: none;"
                "border-left: none;"
                "border-right: none;"
                "border-bottom:1px solid rgb(138,147,155);"
                "font-family: Helvetica;"
                "font-weight: normal;"
                "font-size: 9pt;"
                "color: rgb(72,79,83);"
                "}"
                "QComboBox::drop-down {"
                "width: 25px;"
                "border: 0px;"
                "color:rgb(72,79,83);"
                "}"
                "QComboBox::hover{"
                "background: rgb(242,243,243);"
                "}"
                "QComboBox::down-arrow {"
                "image: url(:/images/Dropdown.png);"
                "width: 8px;"
                "height: 8px; "
                "}"

                "QLineEdit {"
                "background-color: rgb(255,255,255);"
                "border-top: none;"
                "border-left: none;"
                "border-right: none;"
                "border-bottom:1px solid rgb(138,147,155);"
                "font-family: Helvetica;"
                "font-weight: normal;"
                "font-size: 9pt;"
                "color: rgb(72,79,83);"
                "}"
                );
</code></pre>
]]></description><link>https://forum.qt.io/topic/117016/hover-color-of-qcombobox-is-not-fixing</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 07:09:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/117016.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jul 2020 20:01:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hover color of QComboBox is Not fixing ? on Thu, 16 Jul 2020 09:13:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bonnie">@<bdi>Bonnie</bdi></a>  thanks dear it works although I tried it earlier also but it didn't work at that time and since I was not sure about working of QAbstratItemView that's why I removed it . After your reply I knew that I have to work like this so I wondering  why it is not working then, and fount that stylesheet is setting at more than one places . Anyway thanks man ……….</p>
]]></description><link>https://forum.qt.io/post/607162</link><guid isPermaLink="true">https://forum.qt.io/post/607162</guid><dc:creator><![CDATA[veer]]></dc:creator><pubDate>Thu, 16 Jul 2020 09:13:03 GMT</pubDate></item><item><title><![CDATA[Reply to Hover color of QComboBox is Not fixing ? on Wed, 15 Jul 2020 04:55:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veer">@<bdi>veer</bdi></a><br />
Please refer to the doc: <a href="https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox</a><br />
What you want to set is not hover of QComboBox, but the selection of the pop-up, so it should be</p>
<pre><code>QComboBox QAbstractItemView {
    selection-background-color: rgb(242,243,243);
}
</code></pre>
]]></description><link>https://forum.qt.io/post/606807</link><guid isPermaLink="true">https://forum.qt.io/post/606807</guid><dc:creator><![CDATA[Bonnie]]></dc:creator><pubDate>Wed, 15 Jul 2020 04:55:10 GMT</pubDate></item><item><title><![CDATA[Reply to Hover color of QComboBox is Not fixing ? on Wed, 15 Jul 2020 04:41:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veer">@<bdi>veer</bdi></a><br />
Did you mean selection color ?<br />
Can you try with <code>selection-background-color</code> for your <code>QComboBox </code> ?</p>
]]></description><link>https://forum.qt.io/post/606806</link><guid isPermaLink="true">https://forum.qt.io/post/606806</guid><dc:creator><![CDATA[Ratzz]]></dc:creator><pubDate>Wed, 15 Jul 2020 04:41:50 GMT</pubDate></item></channel></rss>