[Interest] File Dialog in WebEngine

Viktor Engelmann viktor.engelmann at qt.io
Mon Oct 30 13:49:51 CET 2017


It appears like the saving is treated like a download internally. Do you
have your WebEngine configured to allow downloads? (by default, it doesn't!)
You can allow them like this

    QObject::connect(webengineview->page()->profile(), &QWebEngineProfile::downloadRequested,
        [](QWebEngineDownloadItem* item){
            item->accept();
        });


On 24.10.2017 12:12, Sudhir Sharma wrote:
> Using JS library  "FileSaver.js".
>
> Function Calls:
>
> Invoke File Save dialog with function call   "saveAs()"

-- 

Viktor Engelmann
Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
Viktor.Engelmann at qt.io
+49 151 26784521
http://qt.io

Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B

The Future is Written with Qt
www.qtworldsummit.com




More information about the Interest mailing list