QDeclarativeBoosterCache Class Reference

#include <qdeclarativeboostercache.h>

Link against: qDeclarativeBooster.lib

class QDeclarativeBoosterCache
Public Member Enumerations
enumCanvas { NoCanvas, DeclarativeView, GraphicsView }
Public Member Functions
QApplication *qApplication(int &, char **, Canvas, int)
QApplication *qApplication(int &, char **, const QUrl &, Canvas, int)
QDeclarativeView *qDeclarativeView()
QGraphicsView *qGraphicsView()

Member Enumeration Documentation

Enum Canvas

EnumeratorValueDescription
NoCanvas0
DeclarativeView1
GraphicsView2

Member Function Documentation

qApplication ( int &, char **, Canvas, int )

QApplication *qApplication(int &argc,
char **argv,
CanvasusedCanvas = DeclarativeView,
intver = QT_VERSION
)[static]

Returns QApplication instance from cache or creates a new one.

Returns QApplication instance from cache or creates a new one. Ownership of the returned object is retained. When app booster is used command line parameters cannot be used. If some sort of parameters need to be passed to the app, either it needs to rely on something else than command line or it cannot use cache. usedCanvas will be pre-constructed in case of application being boosted.

qApplication ( int &, char **, const QUrl &, Canvas, int )

QApplication *qApplication(int &argc,
char **argv,
const QUrl &url,
CanvasusedCanvas = DeclarativeView,
intver = QT_VERSION
)[static]

Returns QApplication instance from cache or creates a new one.

Returns QApplication instance from cache or creates a new one. Ownership of the returned object is retained. For imporved performance URL to preloaded QML can be provided When app booster is used command line parameters cannot be used. If some sort of parameters need to be passed to the app, either it needs to rely on something else than command line or it cannot use cache. usedCanvas will be pre-constructed in case of application being boosted.

qDeclarativeView ( )

QDeclarativeView *qDeclarativeView()[static]

Returns QDeclarativeView instance from cache or creates a new one.

Ownership of the returned object is retained.

qGraphicsView ( )

QGraphicsView *qGraphicsView()[static]

Returns QGraphicsView instance from cache or creates a new one.

Ownership of the returned object is retained.