Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
None
-
-
8c07478a3 (dev), f26d74681 (6.9), 26533ea5b (6.8)
Description
PdfScrollablePageView does not work in the app but only when I launch the single file.
This is the single file:
```
import QtQuick
import QtQuick.Pdf
PdfScrollablePageView {
id: pdfPage
document: PdfDocument {
id: doc
source: "/home/user/.local/share/org/app/data/Model1/file.pdf"
onSourceChanged:
}
onStatusChanged:
{ console.log('Status changed ' + status) }Component.onCompleted:
{ console.log('OnCompleted status ' + status) console.log('OnCompleted DOC.SOURCE ' + doc.source) }}
```
This the log when I run the app:
```
qml: OnCompleted status 0
qml: OnCompleted DOC.SOURCE /home/user/.local/share/org/app/data/Model1/file.pdf
```
This when I run only that file with `qml6 file.qml`:
```
qml: Status changed 2
qml: OnCompleted status 2
qml: OnCompleted DOC.SOURCE /home/user/.local/share/org/app/data/Model1/file.pdf
qml: Status changed 1
```
I think that status 0 is the first of https://doc.qt.io/qt-6/qml-qtquick-image.html#status-prop so `No image has been set`.
I tried to set it after in `Component.onCompleted` and some things but when I run the app status is 0 and does not change.