summaryrefslogtreecommitdiffstats
path: root/examples/pdf/pdfviewer/main.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-02-04 16:08:42 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-02-04 16:47:42 +0100
commit130b058352077b88f8839871f88c226e3e1fa705 (patch)
tree07c5b4d9bf41107985719178ccd555e4a4b250a7 /examples/pdf/pdfviewer/main.cpp
parent1f785521ab6982e7395af223e28137d65f8ead12 (diff)
Add multipage example to pdf.pro; work with 5.14; fix main.cpp
- build the multipage example by default - don't import anything that won't work with Qt 5.14 - set application attributes before creating an instance (to fix the warning about that) Change-Id: I265f49ca75cae1908d4c23848cba8c42e5e3824b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/pdf/pdfviewer/main.cpp')
-rw-r--r--examples/pdf/pdfviewer/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdf/pdfviewer/main.cpp b/examples/pdf/pdfviewer/main.cpp
index 6b94a3de1..639b11825 100644
--- a/examples/pdf/pdfviewer/main.cpp
+++ b/examples/pdf/pdfviewer/main.cpp
@@ -53,11 +53,11 @@
int main(int argc, char* argv[])
{
- QApplication app(argc, argv);
QCoreApplication::setApplicationName("Qt Quick PDF Viewer Example");
QCoreApplication::setOrganizationName("QtProject");
QCoreApplication::setApplicationVersion(QT_VERSION_STR);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///pdfviewer/viewer.qml")));