summaryrefslogtreecommitdiffstats
path: root/tests/auto/pdfquick/multipageview/data/jumpOnDocumentReady.qml
blob: ce74f5ed82cedc8292c8118d69baaedb76c291e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick
import QtQuick.Pdf

PdfMultiPageView {
    id: view
    width: 480
    height: 480

    document: PdfDocument {
        id: document
        onStatusChanged: {
            if(status === PdfDocument.Ready)
                view.goToPage(2)
        }
    }

    Component.onCompleted: document.source = "bookmarksAndLinks.pdf"
}