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).
↧