Hi everyone!
I’ve still have a problem with custom style. For now I’ve used in my project this code:
import QtQuick 2.3
QtObject {
property int rowHeight: 30
property int itemOffset: 22
property color backgroundNormalColor: "white"
property color backgroundPressedColor: "lightsteelblue"
property string titleLabelFontFamily: "Helvetica Neue"
property bool titleLabelFontBold: true
property bool titleLabelFontItalic: false
property bool titleLabelFontUnderline: false
property real titleLabelFontPointSize: 14
property color titleLabelNormalColor: "black"
property color titleLabelPressedColor: "white"
property string descriptionLabelFontFamily: "Helvetica Neue"
property bool descriptionLabelFontBold: false
property bool descriptionLabelFontItalic: false
property bool descriptionLabelFontUnderline: false
property real descriptionLabelFontPointSize: 11
property color descriptionLabelNormalColor: "black"
property color descriptionLabelPressedColor: "white"
property int iconPixelSize: 10
property url iconUrl: "../../images/expander.png"
}
As you can see from source I’ve removed all subobjects from root object. The question is: How I can use object not only “simple” type like: color, int, url, etc.?
P.S. I’ve also tryen property with var type but when I try change property of subobject I’ve receive the error fro first post.
↧








