mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:05:54 +08:00
CURA-4341 add documentation for Qt checkbox binding workaround
This commit is contained in:
parent
07610ea6bb
commit
eb39d857e9
@ -77,6 +77,8 @@ Rectangle
|
|||||||
exclusiveGroup: sidebarHeaderBarGroup
|
exclusiveGroup: sidebarHeaderBarGroup
|
||||||
style: UM.Theme.styles.topbar_header_tab
|
style: UM.Theme.styles.topbar_header_tab
|
||||||
|
|
||||||
|
// We use a Qt.binding to re-bind the checkbox state after manually setting it
|
||||||
|
// https://stackoverflow.com/questions/38798450/qt-5-7-qml-why-are-my-checkbox-property-bindings-disappearing
|
||||||
onClicked: {
|
onClicked: {
|
||||||
base.stopMonitoringPrint()
|
base.stopMonitoringPrint()
|
||||||
checked = Qt.binding(isChecked)
|
checked = Qt.binding(isChecked)
|
||||||
@ -101,6 +103,8 @@ Rectangle
|
|||||||
exclusiveGroup: sidebarHeaderBarGroup
|
exclusiveGroup: sidebarHeaderBarGroup
|
||||||
style: UM.Theme.styles.topbar_header_tab_no_overlay
|
style: UM.Theme.styles.topbar_header_tab_no_overlay
|
||||||
|
|
||||||
|
// We use a Qt.binding to re-bind the checkbox state after manually setting it
|
||||||
|
// https://stackoverflow.com/questions/38798450/qt-5-7-qml-why-are-my-checkbox-property-bindings-disappearing
|
||||||
onClicked: {
|
onClicked: {
|
||||||
base.startMonitoringPrint()
|
base.startMonitoringPrint()
|
||||||
checked = Qt.binding(isChecked)
|
checked = Qt.binding(isChecked)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user