<?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[[Solved] reduce space-size of buttons]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">look at the pictures here:<br />
[url]<a href="http://ubuntuone.com/6rpPTkQeIauvyZQhMoUh0p%5B/url%5D" target="_blank" rel="noopener noreferrer nofollow ugc">http://ubuntuone.com/6rpPTkQeIauvyZQhMoUh0p[/url]</a><br />
[url]<a href="http://ubuntuone.com/47k64UGZRjpzVL0aEkADay%5B/url%5D" target="_blank" rel="noopener noreferrer nofollow ugc">http://ubuntuone.com/47k64UGZRjpzVL0aEkADay[/url]</a></p>
<p dir="auto">as you can see i have some buttons and i want to reduce the space between them, in the second picture you can see that the button get the most space...<br />
i have created the button with this code (example for play button) :<br />
@mplay_pauseButton.setIcon(mplayIcon);<br />
mplay_pauseButton.setIconSize(mplayPixmap.rect().size());<br />
mplay_pauseButton.setFlat(true);@ were mplayPixmap is the pixmap with the icon</p>
<p dir="auto">any idea how to reduce the space?</p>
]]></description><link>https://forum.qt.io/topic/17202/solved-reduce-space-size-of-buttons</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 16:14:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/17202.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 May 2012 12:33:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] reduce space-size of buttons on Thu, 31 May 2012 15:17:27 GMT]]></title><description><![CDATA[<p dir="auto">i used QToolButton and the size of the buttons reduced! i'll marked it as solved</p>
]]></description><link>https://forum.qt.io/post/140451</link><guid isPermaLink="true">https://forum.qt.io/post/140451</guid><dc:creator><![CDATA[clepto]]></dc:creator><pubDate>Thu, 31 May 2012 15:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] reduce space-size of buttons on Thu, 31 May 2012 14:57:02 GMT]]></title><description><![CDATA[<p dir="auto">Try to use QSize function and fix the values for HEIGHT and WIDTH.<br />
#include &lt;QSize&gt;<br />
QSize::QSize ( int width, int height )</p>
]]></description><link>https://forum.qt.io/post/140450</link><guid isPermaLink="true">https://forum.qt.io/post/140450</guid><dc:creator><![CDATA[soundar]]></dc:creator><pubDate>Thu, 31 May 2012 14:57:02 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] reduce space-size of buttons on Thu, 31 May 2012 14:41:31 GMT]]></title><description><![CDATA[<p dir="auto">i did it but the result is the same...</p>
]]></description><link>https://forum.qt.io/post/140447</link><guid isPermaLink="true">https://forum.qt.io/post/140447</guid><dc:creator><![CDATA[clepto]]></dc:creator><pubDate>Thu, 31 May 2012 14:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] reduce space-size of buttons on Thu, 31 May 2012 13:16:28 GMT]]></title><description><![CDATA[<p dir="auto">If you have put the buttons into a layout, try to reduce the spacing and/or contents margins of the layout:</p>
<p dir="auto">@<br />
layout-&gt;setSpacing(0);<br />
layout-&gt;setContentsMargins(0, 0, 0, 0);<br />
@</p>
]]></description><link>https://forum.qt.io/post/140431</link><guid isPermaLink="true">https://forum.qt.io/post/140431</guid><dc:creator><![CDATA[goetz]]></dc:creator><pubDate>Thu, 31 May 2012 13:16:28 GMT</pubDate></item></channel></rss>