Url of WebEngineView with qrc and local file



  • Hello,
    I want display a pdf file in my WebEngineView. For this, I use pdf.js and viewer.html. All files of pdf.js are in my ressource system and I want load automaticly a local pdf.

    But I think the associating of qrc and local file is not possible, because my pdf is not automaticly display.

    WebEngineView {
        anchors.fill: parent
        url: "qrc:/pdfjs/web/viewer.html?file=file:///path/to/my/pdf"
    }
    

    Have you an idea ?

    PS : The manual opening of a local file directly with viewer.html interface is ok


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.