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

[SOLVED]How to access items/properties from within Component{} element??? (Using Ubuntu's ComposerSheet and PopupUtils)

$
0
0
Well, I managed to figure it out, and it’s actually extremely simple. I decided to look for Ubuntu’s QML and JS files, and I found them under /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components, I opened up popupUtils.js to study it’s open() function, and, of course, it simply returns the object —__— Yes, it’s that simple, so instead of just calling PopupUtils.open(myComponent) you call dialog = PopupUtils.open(myComponent) Then you can just use use dialog.myLabel.text = "MyText" //myLabel is a property alias pointing at a Label item The problem is Ubuntu doesn’t have it well documented yet, (well, popupUtils.js isn’t documented at all).

Viewing all articles
Browse latest Browse all 4972

Trending Articles