<?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[Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter.]]></title><description><![CDATA[<p dir="auto">Hello,<br />
We have test environment which detects image and compare it with the database.<br />
Initially we created a database using Qt4.8.<br />
Now while porting the application to 5.15 the image generator for buttons or labels are differing in fonts.</p>
<p dir="auto">Please help us with the appropriate solution.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/867893ea-aec9-4e4b-a4a8-55b71980d9ff.PNG" alt="PleaseWaitForVerification.PNG" class=" img-fluid img-markdown" /> <img src="https://ddgobkiprc33d.cloudfront.net/95a7dbf1-2695-40d1-82e9-a911143ef9aa.PNG" alt="BeginTest.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/134173/text-generated-by-qt-5-15-and-qt4-8-is-not-same-usign-qpainter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 20:50:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/134173.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Feb 2022 16:42:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter. on Thu, 10 Feb 2022 06:50:27 GMT]]></title><description><![CDATA[<p dir="auto">If you will not update the images and continue to ask for exact equality you not going anywhere.</p>
<p dir="auto">The difference could arise because of a difference in Qt4-&gt;5 itself, a library it depends on, a change from using a bundled library to a system library, a change in what is handed off to the operating system, how font kerning and hints are implemented, antialiasing changes, helpful "features" like Windows "High-DPI scaling"...<br />
(You may be able to code to eliminate the last two, but I would still not expect exact equality)</p>
<p dir="auto">You could try an image similarity algorithm<br />
<a href="https://stackoverflow.com/questions/25977/how-can-i-measure-the-similarity-between-two-images" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/25977/how-can-i-measure-the-similarity-between-two-images</a><br />
<a href="https://stackoverflow.com/questions/75891/algorithm-for-finding-similar-images" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/75891/algorithm-for-finding-similar-images</a><br />
<a href="https://stackoverflow.com/questions/189943/how-can-i-quantify-difference-between-two-images" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/189943/how-can-i-quantify-difference-between-two-images</a></p>
]]></description><link>https://forum.qt.io/post/702012</link><guid isPermaLink="true">https://forum.qt.io/post/702012</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Thu, 10 Feb 2022 06:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter. on Thu, 10 Feb 2022 06:05:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
There are more than 15000 images, so it will be very difficult to create the database again.<br />
So if someone can suggest the better solution would be very helpful.</p>
]]></description><link>https://forum.qt.io/post/702003</link><guid isPermaLink="true">https://forum.qt.io/post/702003</guid><dc:creator><![CDATA[karan26]]></dc:creator><pubDate>Thu, 10 Feb 2022 06:05:08 GMT</pubDate></item><item><title><![CDATA[Reply to Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter. on Wed, 09 Feb 2022 20:34:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/karan26">@<bdi>karan26</bdi></a> said in <a href="/post/701814">Text generated by Qt 5.15 and Qt4.8 is not same usign QPainter.</a>:</p>
<blockquote>
<p dir="auto">Please help us with the appropriate solution.</p>
</blockquote>
<p dir="auto">Update your screenshot database with what you get with Qt 5.15.</p>
]]></description><link>https://forum.qt.io/post/701973</link><guid isPermaLink="true">https://forum.qt.io/post/701973</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 09 Feb 2022 20:34:58 GMT</pubDate></item></channel></rss>