<?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[Checkable QToolButton only seems pressed on hover]]></title><description><![CDATA[<p dir="auto">This may be pretty basic so apologies first!</p>
<p dir="auto">I created a QToolButton and made it checkable. I assigned an icon to it. I expected to get it to look "pressed" when I check it. However it only looks pressed (checked) when I hover the mouse on top of it.</p>
<p dir="auto">Here is the code.</p>
<p dir="auto">@/* Skip the member definition and setting it to the layout where it is displayed */@<br />
@btnPause = new QToolButton;@<br />
@QIcon pauseIcon;@<br />
@pauseIcon.addFile(QString::fromUtf8(":/Pause.png"), QSize(), QIcon::Normal, QIcon::On);@<br />
@btnPause-&gt;setCheckable(true);@<br />
@btnPause-&gt;setIcon(pauseIcon);@</p>
<p dir="auto">Am I missing something?</p>
]]></description><link>https://forum.qt.io/topic/27744/checkable-qtoolbutton-only-seems-pressed-on-hover</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 04:30:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/27744.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 May 2013 18:38:24 GMT</pubDate><ttl>60</ttl></channel></rss>