Advertisement
artemmarchenko

Weird binding for hooking on the QueryDialog's link click

Aug 24th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Component.onCompleted: {
  2.         var messageTextElement = aboutDialog.children[0].children[1].children[0].children[0].children[0].children[0].children[0]
  3.         messageTextElement.linkActivated.connect( function(link) {
  4.                                                      console.log("main: link activated: " + link)
  5.                                                      Qt.openUrlExternally(link)
  6.                                                  }
  7.                                                  )
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement