This example illustrates how to connect to the Application fullscreen signal in C++.
#include <bb/Application>
#include <QObject>

class TestObject: public QObject {
public Q_SLOTS:
    void onFullscreen();

void TestObject::onFullscreen() {
    // Do something here

int main(int argc, char **argv) {
    bb::Application app(argc, argv);
    TestObject testObject;

    QObject::connect(&app, SIGNAL( fullscreen() ), &testObject, SLOT( onFullscreen() ));

    return app.exec();


Last modified: 2014-05-15

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus