<?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[numerical inputs?]]></title><description><![CDATA[<p dir="auto">I'm trying to find a good numerical input control. I'm using Qt 5.12. SpinBox is pretty close to what I want, but you can't click on the middle of it and type in a number. I tried TextInput with IntValidator, which seems like it could be a good solution except that the text property is inherently text and it would take some extra jiggering to get it to convert values to integers as I need.</p>
<p dir="auto">Does anyone have suggestions for me?</p>
]]></description><link>https://forum.qt.io/topic/109977/numerical-inputs</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 05:58:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/109977.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Dec 2019 21:11:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to numerical inputs? on Fri, 20 Dec 2019 21:19:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kgregory">@<bdi>kgregory</bdi></a> " but you can't click on the middle of it and type in a number."</p>
<p dir="auto">set the <code>editable</code> property to true</p>
]]></description><link>https://forum.qt.io/post/568542</link><guid isPermaLink="true">https://forum.qt.io/post/568542</guid><dc:creator><![CDATA[Circuits]]></dc:creator><pubDate>Fri, 20 Dec 2019 21:19:32 GMT</pubDate></item><item><title><![CDATA[Reply to numerical inputs? on Sat, 21 Dec 2019 13:48:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kgregory">@<bdi>kgregory</bdi></a><br />
<a href="https://doc.qt.io/qt-5/qspinbox-members.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qspinbox-members.html</a> shows all the inherited methods &amp; properties, it can do all the standard widget stuff.</p>
<p dir="auto">Search <a href="https://doc.qt.io/qt-5/stylesheet-reference.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/stylesheet-reference.html</a> for <code>QSpinBox</code> and you will see the special QSS styles supported.  <a href="https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qspinbox" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qspinbox</a> shows you a variety of attributes you can alter on its appearance.</p>
]]></description><link>https://forum.qt.io/post/568607</link><guid isPermaLink="true">https://forum.qt.io/post/568607</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sat, 21 Dec 2019 13:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to numerical inputs? on Sat, 21 Dec 2019 05:00:08 GMT]]></title><description><![CDATA[<p dir="auto">omg! I love you!</p>
<p dir="auto">bonus points: how can I change the appearance of the spinbox? for example, combobox and slider both have good documentation on how to change the color and shape of various subcomponents, but spinbox doesn't. It looks a little out of place in my app.</p>
]]></description><link>https://forum.qt.io/post/568562</link><guid isPermaLink="true">https://forum.qt.io/post/568562</guid><dc:creator><![CDATA[kgregory]]></dc:creator><pubDate>Sat, 21 Dec 2019 05:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to numerical inputs? on Fri, 20 Dec 2019 21:19:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kgregory">@<bdi>kgregory</bdi></a> " but you can't click on the middle of it and type in a number."</p>
<p dir="auto">set the <code>editable</code> property to true</p>
]]></description><link>https://forum.qt.io/post/568542</link><guid isPermaLink="true">https://forum.qt.io/post/568542</guid><dc:creator><![CDATA[Circuits]]></dc:creator><pubDate>Fri, 20 Dec 2019 21:19:32 GMT</pubDate></item></channel></rss>