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
Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy
Accepted Solution

Led Snippet code R6SDK

Hi all,

when I use

App::App()
{
    Led *theled=new Led();
    theled->setColor(LedColor::Red);
    theled->flash(3);
 

   QmlDocument *qml = QmlDocument::create("main.qml");
    qml->setContextProperty("cs", this);
    
    AbstractPane *root = qml->createRootNode<AbstractPane>();
    Application::setScene(root);
}

I take three errors using Led

undefined reference to `bb::device::Led::Led(QObject*)'
undefined reference to `bb::device::Led::setColor(bb::device::LedColor::Type)'

undefined reference to `bb::device::Led::flash(int)'

 

before this last sdk version ( 10.0.6) all was ok!

Highlighted
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Led Snippet code R6SDK

Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: Led Snippet code R6SDK

Hi mreed,

it works.

thank you

 

 

PS:

but have I missed to read some documentation? I 've followed all tutorials but this wasn't there.