<?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[Custom &quot;Slider&quot;]]></title><description><![CDATA[<p dir="auto">Hello all, I am trying to implement a slider that is similar to the iphone turn off button shown in this <a href="https://www.google.com/imgres?imgurl=https://www.trustedreviews.com/wp-content/uploads/sites/54/2022/02/iPhone-turn-off-1.jpeg&amp;tbnid=j6hg2Ct1ede80M&amp;vet=1&amp;imgrefurl=https://www.trustedreviews.com/how-to/how-to-turn-off-your-iphone-13-4210390&amp;docid=UMldQOvhUvm1kM&amp;w=1170&amp;h=658&amp;source=sh/x/im" target="_blank" rel="noopener noreferrer nofollow ugc">link</a>.</p>
<p dir="auto">Following the QT tutorial <a href="https://doc.qt.io/qt-6/qtwidgets-draganddrop-draggableicons-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">(draggable icons)</a>, I added two labels to a QWidget. One label is for the circle off button while the other label is for the text. I am also able to drag the circle off button across the widget but i am unable to fix the Y axis. Hence the button looks like it is floating. Is there a way to fix the y axis so that the drag or drop event doesnt alter the y axis position?</p>
]]></description><link>https://forum.qt.io/topic/143777/custom-slider</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 13:44:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/143777.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Mar 2023 09:51:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom &quot;Slider&quot; on Tue, 21 Mar 2023 17:53:47 GMT]]></title><description><![CDATA[<p dir="auto">@qt-1234 Could you share the code you're using to drag the "Off button" label and any code related to it?</p>
<p dir="auto">And show us exactly how it goes off your desired Y-Axis, take a screenshot or a GIF if possible.</p>
]]></description><link>https://forum.qt.io/post/751767</link><guid isPermaLink="true">https://forum.qt.io/post/751767</guid><dc:creator><![CDATA[CPPUIX]]></dc:creator><pubDate>Tue, 21 Mar 2023 17:53:47 GMT</pubDate></item></channel></rss>