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

Window width and height in QML

$
0
0
Hey, first of all: root.width is printing you 0 because it’s width is 0. From where do you want to find out your QML Item size? If you want to find it out from QML then you’ll have to do it like you already did. If you want to find it out from Cpp use QObject::property on your rootObject. Could you please describe more what you’re trying to do?

Viewing all articles
Browse latest Browse all 4972

Trending Articles