<?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[QIntValidator and Swedish QLocale problem]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have reported this issue as a bug (<a href="https://bugreports.qt-project.org/browse/QTBUG-35069" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-35069</a>), but I wonder if anyone has a thought about the following problem. If I set a QIntValidator which allows negative numbers on a QLineEdit, the field blocks the minus character in the Swedish QLocale.</p>
<p dir="auto">Here is a quick sample:<br />
QLineEdit* entry = new QLineEdit();<br />
QLocale loc("sv_SE");<br />
QIntValidator* pValidator = new QIntValidator(-9, 9, entry);<br />
pValidator-&gt;setLocale(loc);<br />
entry-&gt;setValidator(pValidator);</p>
<p dir="auto">When the locale is set to "en_US" (US English) or even "fi_FI" (Finnish), the user can enter negative values in the field. However, the Swedish locale block the user from typing a minus sign.  Does anyone know of a reason why this would be intentional, or is this issue truly a bug?</p>
<p dir="auto">thanks,<br />
Brad</p>
]]></description><link>https://forum.qt.io/topic/34618/qintvalidator-and-swedish-qlocale-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 05:37:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/34618.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Nov 2013 00:14:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QIntValidator and Swedish QLocale problem on Fri, 29 Nov 2013 22:10:34 GMT]]></title><description><![CDATA[<p dir="auto">The bug has been fixed</p>
]]></description><link>https://forum.qt.io/post/205730</link><guid isPermaLink="true">https://forum.qt.io/post/205730</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 29 Nov 2013 22:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to QIntValidator and Swedish QLocale problem on Wed, 27 Nov 2013 23:23:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">The fix is on its way</p>
]]></description><link>https://forum.qt.io/post/205475</link><guid isPermaLink="true">https://forum.qt.io/post/205475</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 27 Nov 2013 23:23:37 GMT</pubDate></item></channel></rss>