Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qtwebengine iframe <input file /> not worker...



  • help~~~~
    ui->webView->page()->profile()->clearHttpCache();
    ui->webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
    ui->webView->page()->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
    ui->webView->page()->settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, true);

    ui->webView->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
    ui->webView->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
    ui->webView->settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, true);
    

    but:
    a.html
    <iframe src="b.html" width="500" height="500" />

    b.html
    <input type="file" id="abc" />

    click b.html file input select file not return.....


Log in to reply