<?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[Radiobutton near qtabbar]]></title><description><![CDATA[<p dir="auto">hi to every one<br />
i wrote a program thas has a qtabwidget and radiobutton.<br />
and the radio button is on top of qtabwidget, i know tabs on qtabwidget create with qtabbar.<br />
now i want to add my radio buttons on the same row of qtabbar icons,<br />
how can i do that?<br />
can you help me?<br />
!<a href="http://up7.iranblog.com/images/1nau7kfo8sc3x4h8rqgz.png(imag)" target="_blank" rel="noopener noreferrer nofollow ugc">http://up7.iranblog.com/images/1nau7kfo8sc3x4h8rqgz.png(imag)</a>!</p>
]]></description><link>https://forum.qt.io/topic/12653/radiobutton-near-qtabbar</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 08:37:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/12653.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Dec 2011 07:55:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Radiobutton near qtabbar on Thu, 05 Jan 2012 15:35:17 GMT]]></title><description><![CDATA[<p dir="auto">i found another way:d<br />
setmargin to zero and set maximum height a bit lower</p>
]]></description><link>https://forum.qt.io/post/122917</link><guid isPermaLink="true">https://forum.qt.io/post/122917</guid><dc:creator><![CDATA[kitten]]></dc:creator><pubDate>Thu, 05 Jan 2012 15:35:17 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Thu, 05 Jan 2012 15:22:34 GMT]]></title><description><![CDATA[<p dir="auto">how can i do the second way?<br />
can you give me some code?</p>
]]></description><link>https://forum.qt.io/post/122913</link><guid isPermaLink="true">https://forum.qt.io/post/122913</guid><dc:creator><![CDATA[kitten]]></dc:creator><pubDate>Thu, 05 Jan 2012 15:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Fri, 30 Dec 2011 11:25:05 GMT]]></title><description><![CDATA[<p dir="auto">You cannot do that with built-in methods of Qt.</p>
<p dir="auto">You have two options, neither one is easy, and both have their drawbacks:</p>
<p dir="auto"><em>Use a QTabBar</em><br />
Instead of using a QTabWidget, use a &lsqb;&lsqb;Doc:QTabBar&rsqb;&rsqb;. Put it into a layout together with the readio buttons on top of a &lsqb;&lsqb;Doc:QStackedWidget&rsqb;&rsqb; or a &lsqb;&lsqb;Doc:QStackedLayout&rsqb;&rsqb;. You will have to listen to the tab bars signals and select the stack page manually.</p>
<p dir="auto"><em>Position the radio buttons manually</em><br />
Layout the two radio buttions in a widget. Then position the widget on the top left corner of the tab widget. You will have to listen to resize and move events (probably of the toplevel window your tab is in) in order to reposition the buttions according to the movement of the outer widget.</p>
]]></description><link>https://forum.qt.io/post/122337</link><guid isPermaLink="true">https://forum.qt.io/post/122337</guid><dc:creator><![CDATA[goetz]]></dc:creator><pubDate>Fri, 30 Dec 2011 11:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Fri, 30 Dec 2011 11:18:39 GMT]]></title><description><![CDATA[<p dir="auto">thanks alot,now i create this<br />
but the border comes backward of my radiobuttons widget,how can i make it comes in front of radiobuttons?<br />
!<a href="http://up7.iranblog.com/images/8syy4s9507aj2z1vv0.png" target="_blank" rel="noopener noreferrer nofollow ugc">http://up7.iranblog.com/images/8syy4s9507aj2z1vv0.png</a>(border )!</p>
]]></description><link>https://forum.qt.io/post/122333</link><guid isPermaLink="true">https://forum.qt.io/post/122333</guid><dc:creator><![CDATA[kitten]]></dc:creator><pubDate>Fri, 30 Dec 2011 11:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Fri, 30 Dec 2011 08:46:15 GMT]]></title><description><![CDATA[<p dir="auto">My English bad too )), maybe I bad explaining.</p>
<p dir="auto">Look:</p>
<p dir="auto">"<a href="http://zalil.ru/32406713(rb)" target="_blank" rel="noopener noreferrer nofollow ugc">http://zalil.ru/32406713(rb)</a>":<a href="http://zalil.ru/32406713(rb)" target="_blank" rel="noopener noreferrer nofollow ugc">http://zalil.ru/32406713(rb)</a></p>
<p dir="auto">If this is something that should be, then code is:</p>
<p dir="auto">@ ui-&gt;setupUi(this);<br />
QRadioButton *rb = new QRadioButton (ui-&gt;tabWidget);<br />
rb-&gt;setText("SomeText");<br />
@</p>
<p dir="auto">But it is not easy - with second radiobutton You will have trouble. You may placed your radionbutton, for example, in QPanel and it placed on tabbar.</p>
<p dir="auto">Maybe  better way someone will can offer.</p>
]]></description><link>https://forum.qt.io/post/122298</link><guid isPermaLink="true">https://forum.qt.io/post/122298</guid><dc:creator><![CDATA[kunashir]]></dc:creator><pubDate>Fri, 30 Dec 2011 08:46:15 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Fri, 30 Dec 2011 08:34:15 GMT]]></title><description><![CDATA[<p dir="auto">can you explain more, i cant <a href="http://understand.my" target="_blank" rel="noopener noreferrer nofollow ugc">understand.my</a> english is a little bad<br />
can you give me a code?</p>
]]></description><link>https://forum.qt.io/post/122292</link><guid isPermaLink="true">https://forum.qt.io/post/122292</guid><dc:creator><![CDATA[kitten]]></dc:creator><pubDate>Fri, 30 Dec 2011 08:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to Radiobutton near qtabbar on Fri, 30 Dec 2011 08:24:59 GMT]]></title><description><![CDATA[<p dir="auto">I suggest next - try using tabbar for parent of radiobutton. If I right widget displayed on top right conner. And You may do inheritor of tabbar with radiobuttons.</p>
]]></description><link>https://forum.qt.io/post/122291</link><guid isPermaLink="true">https://forum.qt.io/post/122291</guid><dc:creator><![CDATA[kunashir]]></dc:creator><pubDate>Fri, 30 Dec 2011 08:24:59 GMT</pubDate></item></channel></rss>