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

How to get html code ,i ‘m using QwebEngineView



  • Excuse me,I am using PyQt5 QwebEngineView, how to get the html code.
    for example:

    <!doctype html>
    <html>
            <head>
                    <meta charset="utf-8">
                    <meta http-equiv="X-UA-Compatible" content="IE=edge">
                    <meta name="renderer" content="webkit">
                    <title></title>
                    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
                    <link href="/static/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet">
                    <link href="/static/css/site.css?date=20180912" rel="stylesheet">
                    <link href="/static/codemirror/lib/codemirror.css" rel="stylesheet">
                    <!--[if lte IE 9]>
                    <script src="/static/js/requestAnimationFrame.js"></script>
                    <![endif]-->
            </head>
            <body>
           .....
    

    (from google translation)


Log in to reply