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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
dishooom
Posts: 103
Registered: ‎12-31-2012
My Carrier: Verizon
Accepted Solution

How to retrieve thumbnail() SIGNAL from CPP

Hi

 

The bb:Application class has the thumbnail() SIGNAL which i would like to use for my Cascades application. Since i have a Cascades based GUI project, i am using the bb::cascades::Application to create the application.

 

The API reference for bb:Application says :

 

void TestObject::onThumbnail() {
    // Do something here
}
 
int main(int argc, char **argv) {
    bb::Application app(argc, argv);
    TestObject testObject;
 
    QObject::connect(&app, SIGNAL( thumbnail() ), &testObject, SLOT( onThumbnail() ));
}

 How can i invoke the SIGNAL from CPP when i am using bb::cascades::Application istead of bb::Application?

 

- Dishooom

Please use plain text.
Developer
kylefowler
Posts: 479
Registered: ‎05-17-2009
My Carrier: ATT

Re: How to retrieve thumbnail() SIGNAL from CPP

bb::cascades::Application extends bb::Application if im not mistaken so it would be the exact same way as above. Of course onThumbnail needs to be defined as a slow and testObject needs to be a qobject
Like all of my posts
Please use plain text.
Developer
dishooom
Posts: 103
Registered: ‎12-31-2012
My Carrier: Verizon

Re: How to retrieve thumbnail() SIGNAL from CPP

[ Edited ]

Thanks Kyle....:Angel:

Please use plain text.