Skip to content

Instantly share code, notes, and snippets.

@webmaster128
Created December 23, 2014 22:05
Show Gist options
  • Select an option

  • Save webmaster128/5be0b14b78bb9647bc32 to your computer and use it in GitHub Desktop.

Select an option

Save webmaster128/5be0b14b78bb9647bc32 to your computer and use it in GitHub Desktop.
Property evaluation order
import QtQuick 2.3
import QtQuick.Controls 1.2
Column {
width: 640
height: 480
SpinBox {
id: spin
onMaximumValueChanged: console.log("SpinBox1: max=" + maximumValue)
onMinimumValueChanged: console.log("SpinBox1: min=" + minimumValue)
//onValueChanged: console.log("SpinBox1: val=" + value)
minimumValue: 3
maximumValue: 4
}
}
Start [...]/qmlscene...
qml: SpinBox1: max=4
qml: SpinBox1: min=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment