#include <qdeclarativeboostercache.h>
Link against: qDeclarativeBooster.lib
class QDeclarativeBoosterCache |
Public Member Enumerations | |
---|---|
enum | Canvas { NoCanvas, DeclarativeView, GraphicsView } |
Public Member Functions | |
---|---|
QApplication * | qApplication(int &, char **, Canvas, int) |
QApplication * | qApplication(int &, char **, const QUrl &, Canvas, int) |
QDeclarativeView * | qDeclarativeView() |
QGraphicsView * | qGraphicsView() |
Enumerator | Value | Description |
---|---|---|
NoCanvas | 0 | |
DeclarativeView | 1 | |
GraphicsView | 2 |
QApplication * | qApplication | ( | int & | argc, |
char ** | argv, | |||
Canvas | usedCanvas = DeclarativeView, | |||
int | ver = 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 * | qApplication | ( | int & | argc, |
char ** | argv, | |||
const QUrl & | url, | |||
Canvas | usedCanvas = DeclarativeView, | |||
int | ver = 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.