<?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[Warnings on ButtonGroup filled with Repeater of RadioButton, when using data from QStandardItemModel]]></title><description><![CDATA[<p dir="auto">Hello, I'm writing my Qt QML/C++ application, replacing datamodels based on subclassed QAbstractListModel using custom structs by datamodels based on QStandardItemModel using custom data Q_GADGET classes. My process has three steps (all working fine with the current datamodel solution using subclassed QAbstractListModel). With the new datamodel solution that I would like to use to replace the first because it's lighter, the first one was using a datamodel to feed a Repeater3D of ProceduralMesh, that step works fine, and I progressed to my second step that is using a datamodel to feed a ButtonGroup made of a repeater of RadioButton. That steps works too, but I'm having 2 warning by row that I was not able to remove.</p>
<p dir="auto">Here is the two warnings I have for each row (RadioButton) :</p>
<pre><code>qrc:/qt/qml/dnew/Main.qml:105:40: QML QQuickRectangle: The current style does not support customization of this control (property: "indicator" item: QQuickRectangle(0x7983c241c0, parent=0x0, geometry=0,0 12x12)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference
qrc:/qt/qml/dnew/Main.qml:121:42: QML QQuickText: The current style does not support customization of this control (property: "contentItem" item: QQuickText(0x798796c300, parent=0x0, geometry=0,0 0x0 ⏿)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference
</code></pre>
<p dir="auto">I read the documentation that the warnings cite, but don't see what I'm doing wrong.</p>
<p dir="auto">Here's the QML code snippet concerned :</p>
<pre><code>                ButtonGroup {
                    id: bgParties
                    buttons: columnParties.children.filter((child) =&gt; child !== repListe)
                }
                Column {
                    id: columnParties
                    Repeater {
                        id: repListe
                        delegate: RadioButton {
                            width: 90
                            id: control
                            checked: false
                            padding: 2
                            state: edit.num
                            indicator: Rectangle {
                                implicitWidth: 12
                                implicitHeight: 12
                                x: control.leftPadding
                                y: parent.height/2 - height/2
                                color: iToC[edit.coul]
                                state: edit.num
                                Rectangle {
                                    width:6
                                    height:6
                                    x: parent.width/2 - width/2
                                    y: parent.height/2 - height/2
                                    color: Qt.tint(iToC[edit.coul], "pink")
                                    visible: control.checked
                                }
                            }
                            contentItem: Text {
                                font.pointSize: 8
                                color: darkMode ? "white" : "black"
                                text : "(" + edit.nb + ") " + (edit.nom === "" ? qsTr("Partie #")+ edit.num : edit.nom)
                                leftPadding: control.indicator.width +1
                                font.bold: control.checked
                            }

                            MouseArea {
                                id: rightClickArea
                                anchors.fill: parent
                                acceptedButtons: Qt.RightButton
                                onClicked: {
                                    console.log("menu liste");
                                }
                            }

                            onClicked: {
                                couleurCourante = control.indicator.state;
                            }
                        }
                    }
                }
</code></pre>
<p dir="auto">I may need to replace the ButtonGroup by a TableView ? Or maybe change the setData I use to add data to the model from role Qt.EditRole to Qt.DisplayRole or another ? For the moment I'm using edit as prefix to the data, maybe do I need to use something else ? But I don't see what., and using Qt.EditRole for at least the name on the Text control is needed.</p>
]]></description><link>https://forum.qt.io/topic/165288/warnings-on-buttongroup-filled-with-repeater-of-radiobutton-when-using-data-from-qstandarditemmodel</link><generator>RSS for Node</generator><lastBuildDate>Fri, 20 Nov 2026 20:55:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165288.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Nov 2026 12:38:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Warnings on ButtonGroup filled with Repeater of RadioButton, when using data from QStandardItemModel on Fri, 20 Nov 2026 14:01:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gilboonet">@<bdi>Gilboonet</bdi></a> you have customized your RadioButton's <code>indicator</code> and <code>contentItem</code>. Your warnings say that your <em>"current style does not support customization.... Please customize a non-native style (such as Basic, Fusion, Material, etc)"</em></p>
<p dir="auto">So, the solution is to choose one of the suggested styles.</p>
<p dir="auto">One way to do that is to change <code>import QtQuick.Controls</code> to <code>import QtQuick.Controls.Fusion</code>, for example.</p>
]]></description><link>https://forum.qt.io/post/840988</link><guid isPermaLink="true">https://forum.qt.io/post/840988</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 20 Nov 2026 14:01:25 GMT</pubDate></item><item><title><![CDATA[Reply to Warnings on ButtonGroup filled with Repeater of RadioButton, when using data from QStandardItemModel on Fri, 20 Nov 2026 14:23:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> Thank you, I changed import QtQuick.Controls to import QtQuick.Controls.Basic and the warnings disappear. I also tested on WASM and it's also ok.</p>
]]></description><link>https://forum.qt.io/post/840989</link><guid isPermaLink="true">https://forum.qt.io/post/840989</guid><dc:creator><![CDATA[Gilboonet]]></dc:creator><pubDate>Fri, 20 Nov 2026 14:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to Warnings on ButtonGroup filled with Repeater of RadioButton, when using data from QStandardItemModel on Fri, 20 Nov 2026 14:01:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gilboonet">@<bdi>Gilboonet</bdi></a> you have customized your RadioButton's <code>indicator</code> and <code>contentItem</code>. Your warnings say that your <em>"current style does not support customization.... Please customize a non-native style (such as Basic, Fusion, Material, etc)"</em></p>
<p dir="auto">So, the solution is to choose one of the suggested styles.</p>
<p dir="auto">One way to do that is to change <code>import QtQuick.Controls</code> to <code>import QtQuick.Controls.Fusion</code>, for example.</p>
]]></description><link>https://forum.qt.io/post/840988</link><guid isPermaLink="true">https://forum.qt.io/post/840988</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 20 Nov 2026 14:01:25 GMT</pubDate></item></channel></rss>