<?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[Button styles for newer buttons?]]></title><description><![CDATA[<p dir="auto">I am reworking some code to use newer versions of QML libraries.  I noticed that style is gone.  Do I just use the style as a base object now?</p>
<p dir="auto">Assuming AButtonStyle.qml file:</p>
<pre><code>AButtonStyle{
    specific stuff here
}
</code></pre>
<p dir="auto">Instead of:</p>
<pre><code>Button {
   style:  AButtonStyle{
   }
}
</code></pre>
<p dir="auto"><a href="https://doc.qt.io/archives/qt-5.5/qml-qtquick-controls-button.html" target="_blank" rel="noopener noreferrer nofollow ugc">Old button docs</a><br />
<a href="https://doc.qt.io/qt-5/qml-qtquick-controls2-button.html" target="_blank" rel="noopener noreferrer nofollow ugc">New buttondocs</a></p>
]]></description><link>https://forum.qt.io/topic/106189/button-styles-for-newer-buttons</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 18:03:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/106189.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Aug 2019 16:35:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button styles for newer buttons? on Sat, 24 Aug 2019 16:16:28 GMT]]></title><description><![CDATA[<p dir="auto">Like everyone said there is no more styles in cotrols2 but you can find most of the previous properties of "styles" directly into button (or any other item previously using styles), and if not there is a new equivalent.</p>
]]></description><link>https://forum.qt.io/post/547693</link><guid isPermaLink="true">https://forum.qt.io/post/547693</guid><dc:creator><![CDATA[Darta]]></dc:creator><pubDate>Sat, 24 Aug 2019 16:16:28 GMT</pubDate></item><item><title><![CDATA[Reply to Button styles for newer buttons? on Fri, 23 Aug 2019 20:49:52 GMT]]></title><description><![CDATA[<p dir="auto">There is no more styles in controls2, they are much better and more lightweight. To see how to customize, for example, buttons you can use docs, or you can see how templates customized by <a href="https://github.com/qt/qtquickcontrols2/blob/5.12/src/imports/controls/Button.qml" target="_blank" rel="noopener noreferrer nofollow ugc">default</a>.</p>
]]></description><link>https://forum.qt.io/post/547594</link><guid isPermaLink="true">https://forum.qt.io/post/547594</guid><dc:creator><![CDATA[IntruderExcluder]]></dc:creator><pubDate>Fri, 23 Aug 2019 20:49:52 GMT</pubDate></item><item><title><![CDATA[Reply to Button styles for newer buttons? on Fri, 23 Aug 2019 20:42:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/intruderexcluder">@<bdi>intruderexcluder</bdi></a> It looks interesting, but I don't see how that replaces styles.  For my issue I just did this:</p>
<p dir="auto">SpecialButton.qml</p>
<pre><code>Button {
  // custom things here that are common to all buttons
  // properties and stuff
}
</code></pre>
<p dir="auto">Instead of using styles.</p>
]]></description><link>https://forum.qt.io/post/547590</link><guid isPermaLink="true">https://forum.qt.io/post/547590</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Fri, 23 Aug 2019 20:42:56 GMT</pubDate></item><item><title><![CDATA[Reply to Button styles for newer buttons? on Fri, 23 Aug 2019 20:09:44 GMT]]></title><description><![CDATA[<p dir="auto">Use <code>QtQuick.Templates</code> to customize controls for Controls 2.x.</p>
]]></description><link>https://forum.qt.io/post/547571</link><guid isPermaLink="true">https://forum.qt.io/post/547571</guid><dc:creator><![CDATA[IntruderExcluder]]></dc:creator><pubDate>Fri, 23 Aug 2019 20:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to Button styles for newer buttons? on Fri, 23 Aug 2019 16:38:40 GMT]]></title><description><![CDATA[<p dir="auto">No, that is not going to work.  I will need to redo the buttons.</p>
]]></description><link>https://forum.qt.io/post/547543</link><guid isPermaLink="true">https://forum.qt.io/post/547543</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Fri, 23 Aug 2019 16:38:40 GMT</pubDate></item></channel></rss>