<?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[QMessagebox style]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I used QMessageBox in my application, but appears differently depending on OS.<br />
For example, here using Linux:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/99884b6b-46a2-4ec5-9175-6b8b4d92d888.jpg" alt="photo_2020-04-10_17-17-59.jpg" class=" img-fluid img-markdown" /><br />
And here using Windows:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/243d9d78-9fad-48ba-a903-c777bd7dd9b7.jpg" alt="Screenshot_1.jpg" class=" img-fluid img-markdown" /><br />
In particular I would like to have the buttons centered in both cases, is it possible or I have to create my own class with QDialog and style it as I want?<br />
I try to use margin (and others) property in stylesheet but with linux it isn't work.</p>
]]></description><link>https://forum.qt.io/topic/113530/qmessagebox-style</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 14:22:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/113530.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Apr 2020 15:50:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMessagebox style on Fri, 10 Apr 2020 15:55:41 GMT]]></title><description><![CDATA[<p dir="auto">You have to use your own QWidget/QDialog - QMessageBox is trying to use the native style guides (which also defines the order of the buttons).</p>
]]></description><link>https://forum.qt.io/post/587872</link><guid isPermaLink="true">https://forum.qt.io/post/587872</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 10 Apr 2020 15:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to QMessagebox style on Fri, 10 Apr 2020 16:03:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a>  34/5000<br />
Thanks for your reply!</p>
]]></description><link>https://forum.qt.io/post/587873</link><guid isPermaLink="true">https://forum.qt.io/post/587873</guid><dc:creator><![CDATA[LittleFire]]></dc:creator><pubDate>Fri, 10 Apr 2020 16:03:11 GMT</pubDate></item><item><title><![CDATA[Reply to QMessagebox style on Fri, 10 Apr 2020 15:55:41 GMT]]></title><description><![CDATA[<p dir="auto">You have to use your own QWidget/QDialog - QMessageBox is trying to use the native style guides (which also defines the order of the buttons).</p>
]]></description><link>https://forum.qt.io/post/587872</link><guid isPermaLink="true">https://forum.qt.io/post/587872</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 10 Apr 2020 15:55:41 GMT</pubDate></item></channel></rss>