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

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

$
0
0
I have a ComposerSheet [developer.ubuntu.com], which I’m using PopupUtils.show to display, for those that don’t know PopupUtils requires it to be in a component like so: Component {     id: dialog     ComposerSheet {         //Other stuff goes here     } } Then you call PopupUtils.show(dialog); and it pops up, however because it’s required to be in a Component{} there doesn’t seem to be a way to access things from within, I have a Label in my ComposerSheet, and I need to access myLabel.text, but I can’t figure it out for the life of me. I know Component{}s are supposed to be completely encapsulated, so how do you access items from them when they are loaded? Is anyone familiar with PopupUtils? Is there maybe another argument I can pass PopupUtils.show that will pass properties to it? I just can’t figure it out and it’s getting extremely frustrating, how are we supposed to use Ubuntu Popovers when they are completely encapsulated and we can’t pass any info to them??? There has to be a way or they would be completely pointless. Sorry if I seem frustrated, I am, I really appreciate any help anyone can provide.

Viewing all articles
Browse latest Browse all 4972

Trending Articles