This used to work till Qt 5.15
Button {
text: "Test button"
palette {
button: "green"
}
}
But not with Qt6
This used to work till Qt 5.15
Button {
text: "Test button"
palette {
button: "green"
}
}
But not with Qt6
Copyright © 2021 Jogjafile Inc.
In Qt5 there are 2 groups of items with very common elements as I explain in this post: QML - Cannot assign to non-existent property "style".
In Qt5 the solution was not to confuse the imports (for example use a namespace) but in Qt6 the first group was removed so now only Qt Quick Controls 2 is used and that group has a different way of setting the button style: