Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

QML Engine Internals, Part 3: Binding Types

text: "Window Area: " + (parent.width * parent.height)
text: parent.width * parent.height
Program.bindings: 2
Program.dataLength: 92
Program.subscriptions: 4
     [SNIP of other, unrelated bindings)
     160        14:15:
     176                Block                   Mask(1)
     192                LoadScope               -> Output_Reg(0)
     208                FetchAndSubscribe       Object_Reg(0) Fast_Accessor(0x7f05f6e51060) -> Output_Reg(0) Subscription_Slot(1)
     272                FetchAndSubscribe       Object_Reg(0) Fast_Accessor(0x7f05f6e51090) -> Output_Reg(0) Subscription_Slot(2)
     336                LoadScope               -> Output_Reg(1)
     352                FetchAndSubscribe       Object_Reg(1) Fast_Accessor(0x7f05f6e51060) -> Output_Reg(1) Subscription_Slot(1)
     416                FetchAndSubscribe       Object_Reg(1) Fast_Accessor(0x7f05f6e510a0) -> Output_Reg(1) Subscription_Slot(3)
     480                MulNumber               Input_Reg(0) Input_Reg(1) -> Output_Reg(0)
     496                ConvertNumberToString   Input_Reg(0) -> Output_Reg(1)
     512                Store                   Input_Reg(1) -> Object_Reg(0) Property_Index(42)
import QtQuick 2.0

Rectangle
    width: 360
    height: 360

    Text {
        anchors.centerIn: parent
        text: parent.width * parent.height
        font.pointSize: eval("14")
        font.wordSpacing: parent.width > 10 ? 90 : ~parent.width
    }
}

8 Comments

4 - Feb - 2013

Kai Koehne

4 - Feb - 2013

Simon

30 - Aug - 2013

Kuba

4 - Feb - 2013

Milian Wolff

5 - Feb - 2013

Dalius

5 - Feb - 2013

Simon

6 - Mar - 2013

Christian Feldbacher

6 - Mar - 2013

Thomas McGuire