[ Solved] Re-foramtting buttons
I use "QtQuick.Controls 2.2", which import a standard layout that does not fit the Musescore UI, which is, why I would like to reformat the buttons (et alt). Therefore I need to import "QtQuick.Controls.Styles 1.4" and use the "style" attribute:
import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls.Styles 1.4
import MuseScore 3.0
MuseScore {
[...]
ColumnLayout {
Button {
text: qsTr("Create")
style {
[...]
}
}
}
}
This, however, throws the error:
Creating component failed
line 63: Cannot assign to non-existent property "style"
I do not understand what I am doing wrong, since all imports seems to work fine. Any ideas?
Thank you!
Comments
I answer to myself, since I cannot delete this entry anymore:
QtQuick.Controls.Styles 1.4 is only useable with QtQuick.Controls 1.
Customizing buttons in v2 works differently as described here: https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-butt…