@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlaxes/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlchart/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlcustomizations/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | //viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlcustomlegend/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -32,6 +32,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
32 | 32 | { |
|
33 | 33 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
34 | 34 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
35 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
35 | 36 | |
|
36 | 37 | // @uri QmlCustomModel |
|
37 | 38 | qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel", |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -28,6 +28,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
28 | 28 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
29 | 29 | |
|
30 | 30 | QmlApplicationViewer viewer; |
|
31 | viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
31 | 32 | // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
32 | 33 | viewer.setSource(QUrl("qrc:/qml/qmlf1legends/main.qml")); |
|
33 | 34 | viewer.setRenderHint(QPainter::Antialiasing, true); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -27,6 +27,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
27 | 27 | { |
|
28 | 28 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
29 | 29 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
30 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
30 | 31 | |
|
31 | 32 | DataSource dataSource(viewer.data()); |
|
32 | 33 | viewer->rootContext()->setContextProperty("dataSource", &dataSource); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlpolarchart/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -28,6 +28,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
28 | 28 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
29 | 29 | |
|
30 | 30 | QmlApplicationViewer viewer; |
|
31 | viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
31 | 32 | // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
32 | 33 | QString appKey; |
|
33 | 34 | if (argc > 1) { |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -27,6 +27,7 int main(int argc, char *argv[]) | |||
|
27 | 27 | QApplication app(argc, argv); |
|
28 | 28 | |
|
29 | 29 | QtQuick2ApplicationViewer viewer; |
|
30 | viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
30 | 31 | viewer.setSource(QUrl("qrc:/qml/quick2chart/main.qml")); |
|
31 | 32 | viewer.showExpanded(); |
|
32 | 33 |
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent) | |||
|
42 | 42 | { |
|
43 | 43 | connect(engine(), SIGNAL(quit()), SLOT(close())); |
|
44 | 44 | setResizeMode(QQuickView::SizeRootObjectToView); |
|
45 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
46 | 45 | } |
|
47 | 46 | |
|
48 | 47 | QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer() |
@@ -29,6 +29,7 int main(int argc, char *argv[]) | |||
|
29 | 29 | QApplication app(argc, argv); |
|
30 | 30 | |
|
31 | 31 | QtQuick2ApplicationViewer viewer; |
|
32 | viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
32 | 33 | |
|
33 | 34 | DataSource dataSource(&viewer); |
|
34 | 35 | viewer.rootContext()->setContextProperty("dataSource", &dataSource); |
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent) | |||
|
42 | 42 | { |
|
43 | 43 | connect(engine(), SIGNAL(quit()), SLOT(close())); |
|
44 | 44 | setResizeMode(QQuickView::SizeRootObjectToView); |
|
45 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
46 | 45 | } |
|
47 | 46 | |
|
48 | 47 | QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlpiechart/main.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlchartaxis/main.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[]) | |||
|
26 | 26 | { |
|
27 | 27 | QScopedPointer<QApplication> app(createApplication(argc, argv)); |
|
28 | 28 | QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); |
|
29 | viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
29 | 30 | |
|
30 | 31 | // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); |
|
31 | 32 | viewer->setSource(QUrl("qrc:/qml/qmlchartproperties/loader.qml")); |
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) | |||
|
93 | 93 | new QmlJSDebugger::QDeclarativeViewObserver(this, this); |
|
94 | 94 | #endif |
|
95 | 95 | #endif |
|
96 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports"))); | |
|
97 | 96 | } |
|
98 | 97 | |
|
99 | 98 | QmlApplicationViewer::~QmlApplicationViewer() |
@@ -27,6 +27,7 int main(int argc, char *argv[]) | |||
|
27 | 27 | QApplication app(argc, argv); |
|
28 | 28 | |
|
29 | 29 | QtQuick2ApplicationViewer viewer; |
|
30 | viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
30 | 31 | viewer.setSource(QUrl("qrc:/qml/quick2chartproperties/main.qml")); |
|
31 | 32 | viewer.showExpanded(); |
|
32 | 33 |
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent) | |||
|
42 | 42 | { |
|
43 | 43 | connect(engine(), SIGNAL(quit()), SLOT(close())); |
|
44 | 44 | setResizeMode(QQuickView::SizeRootObjectToView); |
|
45 | addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml"))); | |
|
46 | 45 | } |
|
47 | 46 | |
|
48 | 47 | QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer() |
General Comments 0
You need to be logged in to leave comments.
Login now