Did you actually try? Where did you read that it was not possible? I've not done much with palettes, but searching "palette qt 5.2" gave me SystemPalette as the second result, and it's been around since Qt 4.7. The properties are read-only, so the intention must be that you set the palette in C++.
A "complete copy/paste" of the controls/styles is not necessary, even without using SystemPalette
:
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
Rectangle {
width: 400
height: 400
color: "#444"
ToolButton {
text: "Button"
style: ButtonStyle {
label: Text {
color: "red"
text: control.text
}
}
}
}
If you want to reuse a style for several controls, just create a component out of it, either as a property or in its own QML file.