main.cpp Example File
pageddatamodel/src/main.cpp
#include <bb/cascades/AbstractPane>
#include <bb/cascades/Application>
#include <bb/cascades/QmlDocument>
#include "pageddatamodel.hpp"
using namespace bb::cascades;
Q_DECL_EXPORT int main(int argc, char** argv)
{
Application app(argc, argv);
QmlDocument* qml = QmlDocument::create("asset:///main.qml").parent(&app);
qml->setContextProperty("_model", new PagedDataModel(&app));
AbstractPane *root = qml->createRootObject<AbstractPane>();
Application::instance()->setScene(root);
return Application::exec();
}