Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How is child property of type Item binded to parent?
Forum Updated to NodeBB v4.3 + New Features

How is child property of type Item binded to parent?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 107 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bad63r
    wrote on last edited by bad63r
    #1

    I am developing KDE app, where I have encountered this strange binding.

    There is Object PlasmaComponents.Label, that contains property of type Item called toolTip, and that toolTip property is somehow connected to parent Object PlasmaCore.ToolTipArea.

    PlasmaCore.ToolTipArea {
            id: toolTip
    
            property string text: model.display
    
            anchors.fill: parent
            active: root.visible && label.truncated
            mainItem: toolTipDelegate
    
            onContainsMouseChanged: item.GridView.view.itemContainsMouseChanged(containsMouse)
        }
    
    
        PlasmaComponents.Label {
            id: toolTipDelegate
    
            width: contentWidth
            height: undefined
    
            property Item toolTip
    
            text: toolTip ? toolTip.text : ""
        }
    

    If someone can explain to me or point me to corresponding docs this property in PlasmaComponents.Label I would be really greatful.

     property Item toolTip
    

    Best,
    bad63r

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved