2013-06-28 04:28:12 |
londumas |
description |
Hello again,
In your "Settings" tab, you have a Switch to show/hide hints, you have coded that with a row and a Label and a Switch. This result on an error: "file:///home/helion/DOC/sudoku-app/sudoku-app.qml:314:21: QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function."
The solution is to use a "ListItem.Standard" and a "control" (see file:///usr/share/ubuntu-ui-toolkit/doc/html/qml-ubuntu-components-listitems0-standard.html)
Here what should be done according to me:
ListItem.Standard {
//TRANSLATORS: context here
text: i18n.tr("label")
control: Switch {
id: switchId
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
checked: true
onCheckedChanged: {
print("Hello World!");
}
}
}
This will resolve anckors-row issues.
Thanks again for your app. |
Hello again,
In your "Settings" tab, you have a Switch to show/hide hints, you have coded that with a row and a Label and a Switch. This result on an error:
"file:///home/helion/DOC/sudoku-app/sudoku-app.qml:314:21: QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function."
The solution is to use a "ListItem.Standard" and a "control" (see file:///usr/share/ubuntu-ui-toolkit/doc/html/qml-ubuntu-components-listitems0-standard.html)
Here what should be done according to me:
ListItem.Standard {
//TRANSLATORS: context here
text: i18n.tr("label")
control: Switch {
id: switchId
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
checked: true
onCheckedChanged: {
print("Hello World!");
}
}
}
This will resolve anckors-row issues.
Thanks again for your app. |
|