Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to use console.log in this case

$
0
0
I want to simply make sure that my property is getting set correctly, so I am logging it to console, but this logging is only possible when I use the brackets, but then this makes the actual setting of the value no longer work:   FileMenu{             width: menuListView.width             height: menuBar.height             topmargin: {labelList.height;                 console.log("top margin is:"+labelList.height)             } Of course, this builds fine: topmargin: labelList.height How do you inject a console log in this case?

Viewing all articles
Browse latest Browse all 4972

Trending Articles