Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Contributor
Posts: 28
Registered: ‎07-04-2013
My Device: BB, 86ABC
My Carrier: IDEA

How to create object of ComponentDefinition source file

Hi,

 

 

I want to change orientation of the fields programmatically which are placed in a .qml file which is used as source to ComponentDefinition in another .qml file.

 

pls help me.

Thanks in advance

Contributor
Posts: 15
Registered: ‎08-09-2013
My Device: Developer
My Carrier: -

Re: How to create object of ComponentDefinition source file

this is you want to do?

 

attachedObjects: [
ComponentDefinition {
id: login
source: "asset:///something.qml"
}

 

you must have a qml file with the name: 'something.qml'