libbb/Application_thumbnail.cpp

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

class TestObject: public QObject {
Q_OBJECT
public Q_SLOTS:
    void onThumbnail();
};

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() ));

    return app.exec();
}

Overview

Last modified: 2014-05-15



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

comments powered by Disqus