{"id":94848,"date":"2026-08-15T13:42:26","date_gmt":"2026-08-15T05:42:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94848.html"},"modified":"2026-08-15T13:42:26","modified_gmt":"2026-08-15T05:42:26","slug":"qml%e8%af%b4%e6%98%8e%e4%b9%a6%e9%a2%84%e8%a7%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94848.html","title":{"rendered":"qml\u8bf4\u660e\u4e66\u9884\u89c8"},"content":{"rendered":"<h3>\u4e00\u3001qml\u8bf4\u660e\u4e66\u9884\u89c8\u5b9e\u73b0\u65b9\u5f0f<\/h3>\n<p>1\u3001pdf\u8f6c\u6362\u6210\u56fe\u7247&#043;\u591a\u5f20\u56fe\u7247\u9884\u89c8\u3002<\/p>\n<p>2\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6&#043;pdfDocument&#043;Image<\/p>\n<p>3\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6&#043;PdfPageView\/PdfMultiPageView<\/p>\n<p>4\u3001WebEngineView&#043;\u52a0\u8f7dhttp:\/\/xxx.pdf\u6216\u8005qrc\u8d44\u6e90pdf\u6587\u4ef6\u3002<\/p>\n<p>5\u3001popplerPlugin\u63d2\u4ef6\u65b9\u5f0f<\/p>\n<p>6\u3001WebEngineView&#043;\u52a0\u8f7dhtml\u6587\u4ef6&#xff08;pdftohtml\u5c06pdf\u8f6c\u6362\u6210html&#xff09;<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;<\/span><\/p>\n<p><span style=\"color:#fe2c24\">1&#xff09;1-4\u65b9\u5f0f&#xff0c;\u65e0\u6cd5\u52a8\u6001\u52a0\u8f7dfile:\/\/\u00a0\u534f\u8bae\u7684pdf\u6587\u4ef6\u3002<\/span><\/p>\n<p><span style=\"color:#fe2c24\">2&#xff09;\u7b2c5\u79cd\u65b9\u5f0f&#xff0c;\u53ef\u4ee5\u52a8\u6001\u52a0\u8f7dfile:\/\/\u00a0\u534f\u8bae\u7684pdf\u6587\u4ef6\u3002\u4f46\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u8fd0\u884c&#xff0c;\u4f1a\u51fa\u73b0\u00a0 EGLFS: OpenGL windows cannot be mixed with others. \u89e3\u51b3\u65b9\u6cd5&#xff1a;\u6267\u884c\u8fdb\u7a0b\u65f6&#xff0c;\u589e\u52a0\u53c2\u6570\u00a0-platform xcb<\/span><\/p>\n<p><span style=\"color:#fe2c24\">3&#xff09;\u7b2c6\u79cd\u65b9\u5f0f&#xff0c;\u53ef\u4ee5\u52a8\u6001\u52a0\u8f7dfile:\/\/\u00a0\u534f\u8bae\u7684pdf\u6587\u4ef6\u3002\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u4e5f\u652f\u6301\u3002<\/span><\/p>\n<h3>\u4e8c\u3001\u5e38\u89c1\u65b9\u5f0f\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4<\/h3>\n<h4>2.1 \u9009\u62e9\u5e76\u4f7f\u7528 PDF \u89c6\u56fe\u7ec4\u4ef6<\/h4>\n<p>\u4f7f\u7528 Qt PDF \u6a21\u5757<\/p>\n<p>\u4f60\u7684\u00a0.pro\u00a0\u9879\u76ee\u6587\u4ef6\u4e2d\u6dfb\u52a0\u00a0pdf\u00a0\u6a21\u5757&#xff1a;<\/p>\n<p>qmake<\/p>\n<p>QT &#043;&#061; pdf<\/p>\n<p>QtQuick.Pdf\u00a0\u63d0\u4f9b\u4e86\u4e09\u79cd\u4e3b\u8981\u7684\u89c6\u56fe\u7ec4\u4ef6&#xff0c;\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9&#xff1a;<\/p>\n<table>\n<tr>\u7ec4\u4ef6\u529f\u80fd\u63cf\u8ff0\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>PdfPageView<\/td>\n<td>\u4e00\u6b21\u663e\u793a\u4e00\u9875&#xff0c;\u65e0\u6eda\u52a8\u6761&#xff0c;\u9875\u9762\u5b8c\u6574\u663e\u793a\u3002<\/td>\n<td>\u9002\u7528\u4e8e\u7535\u5b50\u4e66\u3001\u5e7b\u706f\u7247\u7b49\u9700\u8981\u6574\u9875\u9605\u8bfb\u7684\u573a\u666f\u3002<\/td>\n<\/tr>\n<tr>\n<td>PdfScrollablePageView<\/td>\n<td>\u4e00\u6b21\u663e\u793a\u4e00\u9875&#xff0c;\u4f46\u9875\u9762\u53ef\u4ee5\u901a\u8fc7\u6eda\u52a8\u6761\u5e73\u79fb\u67e5\u770b\u3002<\/td>\n<td>\u9002\u7528\u4e8e\u9875\u9762\u8f83\u5927&#xff0c;\u9700\u8981\u653e\u5927\u5c40\u90e8\u67e5\u770b\u7684\u573a\u666f\u3002<\/td>\n<\/tr>\n<tr>\n<td>PdfMultiPageView<\/td>\n<td>\u8fde\u7eed\u663e\u793a\u591a\u9875&#xff0c;\u53ef\u6eda\u52a8\u6d4f\u89c8&#xff0c;\u4f53\u9a8c\u7c7b\u4f3c\u5e38\u89c1PDF\u9605\u8bfb\u5668\u3002<\/td>\n<td>\n<p>\u6700\u901a\u7528\u7684\u9009\u62e9&#xff0c;\u9002\u5408\u5927\u591a\u6570\u6587\u6863\u6d4f\u89c8\u9700\u6c42\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>import QtQuick 2.15<br \/>\nimport QtQuick.Window 2.15<br \/>\nimport QtQuick.Pdf 5.15  \/\/ \u5bfc\u5165 PDF \u6a21\u5757<\/p>\n<p>Window {<br \/>\n    width: 800<br \/>\n    height: 600<br \/>\n    visible: true<br \/>\n    title: &#034;PDF Viewer&#034;<\/p>\n<p>    PdfMultiPageView {<br \/>\n        id: pdfView<br \/>\n        anchors.fill: parent<\/p>\n<p>        \/\/ \u5173\u952e&#xff1a;\u901a\u8fc7 document \u5c5e\u6027\u52a0\u8f7d PDF \u6587\u4ef6<br \/>\n        document: PdfDocument {<br \/>\n            source: &#034;file:\/\/\/path\/to\/your\/document.pdf&#034; \/\/ \u66ff\u6362\u4e3a\u4f60\u7684\u6587\u4ef6\u8def\u5f84<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;\u6ca1\u6709\u627e\u5230\u00a0PdfMultiPageView\u5b9a\u4e49\u65f6&#xff0c;\u5728qt\u5b89\u88c5\u76ee\u5f55\u4e2dqml\/pdf\u4e2d\u627e\u5230\u5bf9\u5e94\u7684*.qml\u6587\u4ef6&#xff0c;\u62f7\u8d1d\u5230\u5de5\u7a0b\u4e2d\u3002<\/span><\/p>\n<h4>2.2\u00a0PdfDocument\u00a0&#043;\u00a0Image<\/h4>\n<p>\u5c06 PDF \u7684\u6570\u636e\u6e90&#xff08;PdfDocument&#xff09;\u4e0e\u663e\u793a&#xff08;Image&#xff09;\u5206\u79bb&#xff0c;\u4fbf\u4e8e\u7ba1\u7406\u72b6\u6001\u548c\u52a0\u8f7d\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<p>import QtQuick 2.15<br \/>\nimport QtQuick.Window 2.15<br \/>\nimport QtQuick.Pdf 5.15 \/\/ \u6216 Qt 6.x \u7684\u5bf9\u5e94\u7248\u672c<\/p>\n<p>Window {<br \/>\n    width: 400<br \/>\n    height: 600<br \/>\n    visible: true<\/p>\n<p>    PdfDocument {<br \/>\n        id: doc<br \/>\n        source: &#034;file:\/\/\/path\/to\/your\/document.pdf&#034;<br \/>\n        \/\/ \u8fd9\u91cc\u53ef\u4ee5\u76d1\u542c status \u53d8\u5316\u7b49<br \/>\n    }<\/p>\n<p>    \/\/ \u6ce8\u610f&#xff1a;PdfPageImage \u662f Qt 6.4&#043; \u7684\u7c7b\u578b<br \/>\n    Image {<br \/>\n        anchors.fill: parent<br \/>\n        source: doc.source \/\/ \u4f7f\u7528\u6587\u6863\u7684\u8def\u5f84<br \/>\n        currentFrame: 0<br \/>\n        fillMode: Image.PreserveAspectFit<br \/>\n        \/\/ \u4e3a\u4e86\u66f4\u7d27\u5bc6\u5730\u7ed1\u5b9a\u6587\u6863\u72b6\u6001&#xff0c;\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u989d\u5916\u4ee3\u7801<br \/>\n    }<br \/>\n} <\/p>\n<h4>2.3 WebEngineView<\/h4>\n<p>\u5728 QML \u4e2d&#xff0c;\u7528\u00a0WebEngineView\u00a0\u52a0\u8f7d\u8fd9\u4e2a\u00a0viewer.html&#xff0c;\u5e76\u901a\u8fc7 URL \u53c2\u6570\u5c06 PDF \u6587\u4ef6\u5730\u5740\u4f20\u9012\u8fc7\u53bb\u3002<\/p>\n<p>\u4f60\u7684\u00a0.pro\u00a0\u9879\u76ee\u6587\u4ef6\u4e2d\u6dfb\u52a0\u00a0WebEngineView\u00a0\u6a21\u5757&#xff1a;<\/p>\n<p>qmake<\/p>\n<p>QT &#043;&#061; webengine<br \/>\nimport QtQuick 2.15<br \/>\nimport QtQuick.Window 2.15<br \/>\nimport QtWebEngine 1.10 \/\/ \u5bfc\u5165 WebEngine \u6a21\u5757<\/p>\n<p>Window {<br \/>\n    width: 800<br \/>\n    height: 600<br \/>\n    visible: true<\/p>\n<p>    WebEngineView {<br \/>\n        anchors.fill: parent<br \/>\n        \/\/ \u52a0\u8f7d pdf.js \u7684\u67e5\u770b\u5668&#xff0c;\u5e76\u901a\u8fc7 &#039;file&#039; \u53c2\u6570\u6307\u5b9a\u4f60\u7684 PDF \u6587\u4ef6<br \/>\n        url: &#034;file:\/\/\/path\/to\/pdfjs-version\/web\/viewer.html?file&#061;file:\/\/\/path\/to\/your\/document.pdf&#034;<br \/>\n    }<br \/>\n} <\/p>\n<p id=\"articleContentId\">WebEngineView\u9ed8\u8ba4\u60c5\u51b5\u4e0bqt\u5b89\u88c5\u5305\u4e0d\u5305\u542b\u3002\u9700\u8981\u7f16\u8bd1Qt5.15.2 qtwebengine\u6a21\u5757&#xff0c;\u5177\u4f53\u53c2\u8003&#xff1a;\u7f16\u8bd1Qt5.15.2 qtwebengine\u6a21\u5757_qt \u5b89\u88c5\u76ee\u5f55src \u4e0b\u7684qtwebengine \u600e\u4e48\u7f16\u8bd1-CSDN\u535a\u5ba2<\/p>\n<h4 style=\"background-color:transparent\">2.4\u00a0popplerPlugin\u63d2\u4ef6\u65b9\u5f0f<\/h4>\n<p>\u5177\u4f53\u53c2\u8003\u6587\u7ae0&#xff1a;https:\/\/chenzhengyi.blog.csdn.net\/article\/details\/163642988?spm&#061;1011.2415.3001.5331<\/p>\n<h4>2.5\u00a0WebEngineView&#043;\u52a0\u8f7dhtml\u6587\u4ef6<\/h4>\n<p>\u901a\u8fc7pdftohtml\u5c06pdf\u8f6c\u6362\u6210html&#xff0c;\u518d\u5229\u7528WebEngineView\u52a0\u8f7dhmtl\u6587\u4ef6\u3002<\/p>\n<p>\u5177\u4f53\u53c2\u8003\u6587\u7ae0&#xff1a;https:\/\/chenzhengyi.blog.csdn.net\/article\/details\/163775668?spm&#061;1011.2415.3001.5331<\/p>\n<\/p>\n<h3>\u4e09\u3001\u5b9e\u4f8b<\/h3>\n<p>helpset.qml<\/p>\n<p>import QtQuick 2.14<br \/>\nimport QtQuick.Controls 2.14<br \/>\nimport QtQuick.Layouts 1.15<\/p>\n<p>Item {<br \/>\n    width: parent.width<br \/>\n    height: 1200-80<\/p>\n<p>    property int fontDefaultSize: 30<\/p>\n<p>    \/\/\u5e2e\u52a9 title<br \/>\n    Rectangle {<br \/>\n        y:20<br \/>\n        id: rectHelpSetByContent<br \/>\n        width: parent.width<br \/>\n        height: 40<br \/>\n        color: &#034;#383838&#034;<br \/>\n        \/\/border.color:&#034;blue&#034;<\/p>\n<p>        Text {<br \/>\n            anchors.centerIn: parent<br \/>\n            id: labelHelpSetByContent<br \/>\n            text: qsTr(&#034;\u5e2e\u52a9&#034;)<br \/>\n            color: &#034;#F5F5F5&#034;<br \/>\n            font.pixelSize: fontDefaultSize<br \/>\n        }<br \/>\n    }<\/p>\n<p>    ColumnLayout{<br \/>\n        y:90<br \/>\n        width:parent.width<br \/>\n        height: 80<br \/>\n        spacing: 0<\/p>\n<p>        \/\/\u7528\u6237\u624b\u518c<br \/>\n        Rectangle {<br \/>\n            Layout.fillWidth: true<br \/>\n            Layout.preferredHeight: 80<br \/>\n            color: &#034;#4A4A4A&#034; \/\/ \u80cc\u666f\u8272<br \/>\n            border{<br \/>\n                color: &#034;#FFFFFF&#034;<br \/>\n                width: 1<br \/>\n            }<br \/>\n            Layout.alignment: Qt.AlignTop<\/p>\n<p>            RowLayout {<br \/>\n                width: parent.width<br \/>\n                spacing: 10<br \/>\n                anchors.centerIn: parent<\/p>\n<p>                Label {<br \/>\n                    id: labelUserManualByContent<br \/>\n                    Layout.fillWidth: true<br \/>\n                    text: qsTr(&#034;\u7528\u6237\u624b\u518c&#034;)<br \/>\n                    color: &#034;#F5F5F5&#034;<br \/>\n                    font.pixelSize: fontDefaultSize<br \/>\n                    Layout.leftMargin: 30<br \/>\n                }<\/p>\n<p>                Label {<br \/>\n                    text: qsTr(&#034;\u8be6\u60c5&#034;)<br \/>\n                    color: &#034;#F5F5F5&#034;<br \/>\n                    font.pixelSize: fontDefaultSize<br \/>\n                    Layout.alignment:Qt.AlignRight<br \/>\n                }<\/p>\n<p>                Label {<br \/>\n                    text: qsTr(&#034;&gt;&#034;)<br \/>\n                    color: &#034;#F5F5F5&#034;<br \/>\n                    font.pixelSize: fontDefaultSize<br \/>\n                    Layout.alignment:Qt.AlignRight<br \/>\n                    Layout.rightMargin: 30<br \/>\n                    MouseArea{<br \/>\n                        anchors.fill:parent<br \/>\n                        onClicked: {<br \/>\n                            console.log(&#034;&#8211;\u8be6\u60c5\u6309\u94ae\u89e6\u53d1&#034;)<br \/>\n                            pageLoader.source &#061; &#034;help.qml&#034;<br \/>\n                            pageLoader.item.setLanguage(0)<br \/>\n                        }<br \/>\n                    }<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Loader {<br \/>\n        id: pageLoader<br \/>\n        y:90<br \/>\n        width:parent.width<br \/>\n        height:1200 &#8211; 170<br \/>\n        source: &#034;&#034;   \/\/ \u9ed8\u8ba4\u7a7a<br \/>\n    }<br \/>\n}<\/p>\n<p>help.qml&#xff08;\u591a\u5f20png\u56fe\u7247&#xff09;<\/p>\n<p>import QtQuick 2.14<br \/>\nimport QtQuick.Controls 2.14<br \/>\nimport QtQuick.Layouts 1.15<\/p>\n<p>Rectangle{<br \/>\n    id:helpToolDialog<br \/>\n    width: parent.width<br \/>\n    height: parent.height<br \/>\n    anchors.fill: parent<br \/>\n    color: &#034;#FFFACD&#034; \/*&#034;transparent&#034;*\/<br \/>\n    visible: true<br \/>\n    property int langType: 0<\/p>\n<p>    \/\/ \u5f53\u524d\u663e\u793a\u7684\u56fe\u7247\u7d22\u5f15<br \/>\n    property int currentIndex: 0<\/p>\n<p>    \/\/ \u7f29\u653e\u56e0\u5b50&#xff08;1.0 &#061; \u539f\u59cb\u50cf\u7d20\u5927\u5c0f&#xff09;<br \/>\n    property real scaleFactor: 1.0<\/p>\n<p>    \/\/ \u8ba1\u7b97\u201c\u9002\u5e94\u5c4f\u5e55\u201d\u7684\u7f29\u653e\u503c&#xff08;\u5728\u56fe\u7247\u52a0\u8f7d\u5b8c\u6210\u540e\u8ba1\u7b97&#xff09;<br \/>\n    property real fitScale: 1.0<\/p>\n<p>    function setLanguage(value){<br \/>\n        langType &#061; value<br \/>\n    }<\/p>\n<p>    function getHelpBookPageCount(){<br \/>\n       if( 0 &#061;&#061;&#061; langType){<br \/>\n          console.log(&#034;helpbookImagePathsModelByChinese.length:&#034;, helpbookImagePathsModelByChinese.length)<br \/>\n          return helpbookImagePathsModelByChinese.length<br \/>\n       }<br \/>\n       else{<br \/>\n         return  helpbookImagePathsModelByChinese.length<br \/>\n       }<br \/>\n    }<\/p>\n<p>    function getHelpBookDefaultUrl(){<br \/>\n        if( 0 &#061;&#061;&#061; langType){<br \/>\n           if(helpbookImagePathsModelByChinese.length &gt; 0){<br \/>\n              console.log(&#034;helpbookImagePathsModelByChinese[0]:&#034;, helpbookImagePathsModelByChinese[0])<br \/>\n              return helpbookImagePathsModelByChinese[0]<br \/>\n           }<br \/>\n           else{<br \/>\n              return &#034;&#034;<br \/>\n           }<br \/>\n        }<br \/>\n        else{<br \/>\n           if(helpbookImagePathsModelByEnglish.length &gt; 0){<br \/>\n              return helpbookImagePathsModelByEnglish[0]<br \/>\n           }<br \/>\n           else{<br \/>\n              return &#034;&#034;<br \/>\n           }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function updateHelpBookUrl(){<br \/>\n       if( 0 &#061;&#061;&#061; langType){<br \/>\n          if(helpbookImagePathsModelByChinese.length &gt; 0 &amp;&amp; currentIndex &lt; helpbookImagePathsModelByChinese.length){<br \/>\n            currentHelpImage.source &#061; helpbookImagePathsModelByChinese[currentIndex]<br \/>\n          }<br \/>\n       }<br \/>\n       else{<br \/>\n          if(helpbookImagePathsModelByEnglish.length &gt; 0 &amp;&amp; currentIndex &lt; helpbookImagePathsModelByEnglish.length){<br \/>\n             currentHelpImage.source &#061; helpbookImagePathsModelByEnglish[currentIndex]<br \/>\n          }<br \/>\n       }<br \/>\n    }<\/p>\n<p>    \/\/ &#8212;&#8212;&#8212;- \u7f29\u653e\u63a7\u5236\u51fd\u6570 &#8212;&#8212;&#8212;-<br \/>\n    function zoomIn() {<br \/>\n        scaleFactor &#061; Math.min(scaleFactor * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n    }<\/p>\n<p>    function zoomOut() {<br \/>\n        scaleFactor &#061; Math.max(scaleFactor \/ 1.25, 0.1)    \/\/ \u6700\u5c0f\u7f29\u5c0f 0.1 \u500d<br \/>\n    }<\/p>\n<p>    function zoomFit() {<br \/>\n        if (currentHelpImage.status &#061;&#061;&#061; Image.Ready) {<br \/>\n            scaleFactor &#061; fitScale<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function zoomOriginal() {<br \/>\n        scaleFactor &#061; 1.0   \/\/ 1:1 \u539f\u59cb\u50cf\u7d20<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: zoomOutBtn\/\/\u7f29\u5c0f<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: closeBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;zoom out&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomOut()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: zoomInBtn\/\/\u653e\u5927<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: zoomOutBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;zoom in&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomIn()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: originalBtn     \/\/\u539f\u59cb\u5927\u5c0f<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: zoomInBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;original&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomOriginal()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: fitBtn     \/\/\u9002\u5e94\u5c4f\u5e55<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: originalBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;fit&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomFit()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: closeBtn<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: parent.right<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        width: 30<br \/>\n        height: 30<br \/>\n        text: &#034;\u2715&#034;                     \/\/ \u6216\u8005\u7528 &#034;X&#034;<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            pageLoader.source &#061; &#034;&#034;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    RowLayout{<br \/>\n        width: parent.width<br \/>\n        height:parent.height &#8211; 40 &#8211; 90<br \/>\n        y: 40<br \/>\n        spacing: 5<br \/>\n        Layout.alignment: Qt.AlignTop<\/p>\n<p>        Button{<br \/>\n            Layout.preferredWidth: 120<br \/>\n            Layout.alignment:Qt.AlignLeft<br \/>\n            Layout.leftMargin: 5<br \/>\n            text: qsTr(&#034;\u4e0a\u4e00\u9875&#034;)<br \/>\n            onClicked: {<br \/>\n               if( 0 &#061;&#061;&#061; langType){<br \/>\n                  if(helpbookImagePathsModelByChinese.length &gt; 0 &amp;&amp; (currentIndex-1) &gt;&#061; 0){<br \/>\n                     currentIndex &#061; currentIndex &#8211; 1<br \/>\n                     updateHelpBookUrl()<br \/>\n                  }<br \/>\n               }<br \/>\n               else{<br \/>\n                  if(helpbookImagePathsModelByEnglish.length &gt; 0 &amp;&amp; (currentIndex-1) &gt;&#061; 0){<br \/>\n                     currentIndex &#061; currentIndex &#8211; 1<br \/>\n                     updateHelpBookUrl()<br \/>\n                  }<br \/>\n               }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        Item {<br \/>\n            Layout.fillWidth: true<br \/>\n            Layout.fillHeight: true<br \/>\n            Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter<\/p>\n<p>            ColumnLayout{<br \/>\n                Layout.fillWidth: true<br \/>\n                Layout.fillHeight: true<br \/>\n                anchors.fill: parent<br \/>\n                spacing: 2<\/p>\n<p>                Flickable {<br \/>\n                    id: imageFlickable<br \/>\n                    Layout.fillWidth: true<br \/>\n                    Layout.fillHeight: true<br \/>\n                    Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter<br \/>\n                    clip: true<\/p>\n<p>                    \/\/ \u5185\u5bb9\u5c3a\u5bf8\u8ddf\u968f\u56fe\u7247\u5b9e\u9645\u7ed8\u5236\u5c3a\u5bf8<br \/>\n                    contentWidth: currentHelpImage.paintedWidth<br \/>\n                    contentHeight: currentHelpImage.paintedHeight<\/p>\n<p>                    \/\/ \u5c45\u4e2d\u5305\u88c5 Item<br \/>\n                    Item {<br \/>\n                           width: Math.max(imageFlickable.width, currentHelpImage.paintedWidth)<br \/>\n                           height: Math.max(imageFlickable.height, currentHelpImage.paintedHeight)<\/p>\n<p>                           Image {<br \/>\n                               id: currentHelpImage<br \/>\n                               source: getHelpBookDefaultUrl()<br \/>\n                               asynchronous: true<br \/>\n                               smooth: true<br \/>\n                               fillMode: Image.PreserveAspectFit    \/\/\u4e0d\u88c1\u526a&#xff0c;\u4e0d\u62c9\u4f38<\/p>\n<p>                               \/\/ \u56fa\u5b9a\u4e3a\u539f\u59cb\u5c3a\u5bf8&#xff08;\u82e5\u9700\u8981\u56fa\u5b9a\u5176\u4ed6\u5c3a\u5bf8&#xff0c;\u76f4\u63a5\u5199\u6570\u503c&#xff09;<br \/>\n                               width: sourceSize.width * scaleFactor<br \/>\n                               height: sourceSize.height * scaleFactor<\/p>\n<p>                               anchors.centerIn: parent<\/p>\n<p>                               \/\/ \u52a0\u8f7d\u5b8c\u6210\u540e\u66f4\u65b0\u9002\u5e94\u5c4f\u5e55\u7684\u7f29\u653e\u503c<br \/>\n                               onStatusChanged: {<br \/>\n                                   if (status &#061;&#061;&#061; Image.Ready) {<br \/>\n                                       fitScale &#061; Math.min(<br \/>\n                                           imageFlickable.width \/ sourceSize.width,<br \/>\n                                           imageFlickable.height \/ sourceSize.height<br \/>\n                                       )<br \/>\n                                       \/\/ \u9ed8\u8ba4\u4ee5\u201c\u9002\u5e94\u5c4f\u5e55\u201d\u663e\u793a<br \/>\n                                       scaleFactor &#061; fitScale<br \/>\n                                       scaleFactor &#061; Math.min(scaleFactor * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n                                       scaleFactor &#061; Math.min(scaleFactor * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n                                   }<br \/>\n                               }<br \/>\n                           }<br \/>\n                    }<br \/>\n                }<\/p>\n<p>                \/*<br \/>\n                Image {<br \/>\n                    id: currentHelpImage<br \/>\n                    Layout.fillWidth: true<br \/>\n                    Layout.fillHeight: true<br \/>\n                    source: getHelpBookDefaultUrl()<br \/>\n                    fillMode: Image.Pad<br \/>\n                }<br \/>\n                *\/<\/p>\n<p>                Rectangle{<br \/>\n                    Layout.fillWidth: true<br \/>\n                    Layout.preferredHeight: 60<br \/>\n                    color: &#034;#555555&#034;<\/p>\n<p>                    RowLayout{<br \/>\n                        width: parent.width<br \/>\n                        \/\/height: parent.height<br \/>\n                        spacing: 10<br \/>\n                        \/\/Layout.alignment: Qt.AlignCenter<br \/>\n                        anchors.fill: parent<\/p>\n<p>                        Label{<br \/>\n                           Layout.leftMargin:300<br \/>\n                            text: {<br \/>\n                               return qsTr(&#034;\u603b\u9875\u6570:&#034;) &#043; getHelpBookPageCount().toString()<br \/>\n                            }<br \/>\n                        }<\/p>\n<p>                        Label{<br \/>\n                           Layout.rightMargin:300<br \/>\n                            text: {<br \/>\n                               if(getHelpBookPageCount() &gt; 0){<br \/>\n                                  return qsTr(&#034;\u5f53\u524d\u9875:&#034;) &#043; (currentIndex&#043;1).toString()<br \/>\n                               }<br \/>\n                               else{<br \/>\n                                  return qsTr(&#034;\u5f53\u524d\u9875:&#034;) &#043; &#034;0&#034;<br \/>\n                               }<br \/>\n                            }<br \/>\n                        }<br \/>\n                    }<br \/>\n                }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        Button{<br \/>\n            Layout.preferredWidth: 120<br \/>\n            Layout.alignment:Qt.AlignRight<br \/>\n            Layout.rightMargin: 5<br \/>\n            text: qsTr(&#034;\u4e0b\u4e00\u9875&#034;)<br \/>\n            onClicked: {<br \/>\n               if( 0 &#061;&#061;&#061; langType){<br \/>\n                  if(helpbookImagePathsModelByChinese.length &gt; 0 &amp;&amp; (currentIndex&#043;1) &lt; helpbookImagePathsModelByChinese.length){<br \/>\n                     currentIndex &#061; currentIndex &#043; 1<br \/>\n                     updateHelpBookUrl()<br \/>\n                  }<br \/>\n               }<br \/>\n               else{<br \/>\n                  if(helpbookImagePathsModelByEnglish.length &gt; 0 &amp;&amp; (currentIndex&#043;1) &lt; helpbookImagePathsModelByEnglish.length){<br \/>\n                     currentIndex &#061; currentIndex &#043; 1<br \/>\n                     updateHelpBookUrl()<br \/>\n                  }<br \/>\n               }<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>help.qml&#xff08;\u5355\u4e2apdf&#xff09;<\/p>\n<p>import QtQuick 2.14<br \/>\nimport QtQuick.Controls 2.14<br \/>\nimport QtQuick.Layouts 1.15<br \/>\nimport QtQuick.Pdf 5.15  \/\/ \u5bfc\u5165PDF\u6a21\u5757<\/p>\n<p>Rectangle{<br \/>\n    id:helpToolDialog<br \/>\n    width: parent.width<br \/>\n    height: parent.height<br \/>\n    anchors.fill: parent<br \/>\n    color: &#034;#FFFACD&#034; \/*&#034;transparent&#034;*\/<br \/>\n    visible: true<br \/>\n    property int langType: 0<\/p>\n<p>    \/\/ \u5f53\u524d\u663e\u793a\u7684\u56fe\u7247\u7d22\u5f15<br \/>\n    property int currentIndex: 0<\/p>\n<p>    \/\/ \u7f29\u653e\u56e0\u5b50&#xff08;1.0 &#061; \u539f\u59cb\u50cf\u7d20\u5927\u5c0f&#xff09;<br \/>\n    property real scaleFactor: 1.0<\/p>\n<p>    \/\/ \u8ba1\u7b97\u201c\u9002\u5e94\u5c4f\u5e55\u201d\u7684\u7f29\u653e\u503c&#xff08;\u5728\u56fe\u7247\u52a0\u8f7d\u5b8c\u6210\u540e\u8ba1\u7b97&#xff09;<br \/>\n    property real fitScale: 1.0<br \/>\n    property real fitScaleByEnglishBook: 1.0<br \/>\n    property bool currentHelpImageIsReadyed:false<\/p>\n<p>    function setLanguage(value){<br \/>\n        langType &#061; value<br \/>\n    }<\/p>\n<p>    function getHelpBookDefaultUrl(){<br \/>\n        if( 0 &#061;&#061;&#061; langType){<br \/>\n            return &#034;qrc:\/helpbook\/help-cn.pdf&#034;<br \/>\n        }<br \/>\n        else{<br \/>\n            return &#034;qrc:\/helpbook\/help-en.pdf&#034;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function updateHelpBookUrl(){<br \/>\n       if( 0 &#061;&#061;&#061; langType){<br \/>\n         myDocument.source &#061; &#034;qrc:\/helpbook\/help-cn.pdf&#034;<br \/>\n       }<br \/>\n       else{<br \/>\n         myDocument.source &#061; &#034;qrc:\/helpbook\/help-cn.pdf&#034;<br \/>\n       }<br \/>\n    }<\/p>\n<p>    \/\/ &#8212;&#8212;&#8212;- \u7f29\u653e\u63a7\u5236\u51fd\u6570 &#8212;&#8212;&#8212;-<br \/>\n    function zoomIn() {<br \/>\n        scaleFactor &#061; Math.min(scaleFactor * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n    }<\/p>\n<p>    function zoomOut() {<br \/>\n        scaleFactor &#061; Math.max(scaleFactor \/ 1.25, 0.1)    \/\/ \u6700\u5c0f\u7f29\u5c0f 0.1 \u500d<br \/>\n    }<\/p>\n<p>    function zoomFit() {<br \/>\n        if (currentHelpImageIsReadyed) {<br \/>\n            if(0 &#061;&#061;&#061; langType){<br \/>\n                scaleFactor &#061; fitScale<br \/>\n            }<br \/>\n            else{<br \/>\n                scaleFactor &#061; fitScaleByEnglishBook<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function zoomOriginal() {<br \/>\n        scaleFactor &#061; 1.0   \/\/ 1:1 \u539f\u59cb\u50cf\u7d20<br \/>\n    }<\/p>\n<p>    PdfDocument {<br \/>\n         id: myDocument<br \/>\n         source: {<br \/>\n             return getHelpBookDefaultUrl();<br \/>\n         }<br \/>\n     }<\/p>\n<p>    Button{<br \/>\n        id: zoomOutBtn\/\/\u7f29\u5c0f<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: closeBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;zoom out&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomOut()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: zoomInBtn\/\/\u653e\u5927<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: zoomOutBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;zoom in&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomIn()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: originalBtn     \/\/\u539f\u59cb\u5927\u5c0f<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: zoomInBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;original&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomOriginal()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: fitBtn     \/\/\u9002\u5e94\u5c4f\u5e55<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: originalBtn.left<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        text:qsTr(&#034;fit&#034;)<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            zoomFit()<br \/>\n        }<br \/>\n    }<\/p>\n<p>    Button{<br \/>\n        id: closeBtn<br \/>\n        anchors {<br \/>\n            top: parent.top<br \/>\n            right: parent.right<br \/>\n            margins: 5<br \/>\n        }<br \/>\n        width: 30<br \/>\n        height: 30<br \/>\n        text: &#034;\u2715&#034;                     \/\/ \u6216\u8005\u7528 &#034;X&#034;<br \/>\n        font.pixelSize: 20<br \/>\n        font.bold: true<br \/>\n        z: 1<br \/>\n        background: Rectangle {<br \/>\n            color: parent.pressed ? &#034;#AA4444&#034; : &#034;#555555&#034;<br \/>\n            radius: 5<br \/>\n        }<br \/>\n        contentItem: Text {<br \/>\n            text: parent.text<br \/>\n            color: &#034;white&#034;<br \/>\n            horizontalAlignment: Text.AlignHCenter<br \/>\n            verticalAlignment: Text.AlignVCenter<br \/>\n            font.pixelSize: parent.font.pixelSize<br \/>\n        }<br \/>\n        onClicked: {<br \/>\n            pageLoader.source &#061; &#034;&#034;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    RowLayout{<br \/>\n        width: parent.width<br \/>\n        height:parent.height &#8211; 40 &#8211; 90<br \/>\n        y: 40<br \/>\n        spacing: 5<br \/>\n        Layout.alignment: Qt.AlignTop<\/p>\n<p>        ListView {<br \/>\n            id: pdfListView<br \/>\n            Layout.fillWidth: true<br \/>\n            Layout.fillHeight: true<br \/>\n            Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter<br \/>\n            clip: true<\/p>\n<p>            model: myDocument.pageCount<br \/>\n            delegate: Item {<br \/>\n                width: pdfListView.width &#8211; (vbar.visible ? vbar.width : 0)<br \/>\n                height: myDocument.pagePointSize(index).height * helpToolDialog.scaleFactor<\/p>\n<p>                Image {<br \/>\n                    id: currentHelpImage<br \/>\n                    source: myDocument.source<br \/>\n                    currentFrame: index<br \/>\n                    fillMode: Image.PreserveAspectFit<br \/>\n                    \/\/ \u5c3a\u5bf8 &#061; \u539f\u59cb\u5c3a\u5bf8&#xff08;\u70b9&#xff09; * \u7f29\u653e\u56e0\u5b50&#xff08;\u5047\u8bbe 1 \u70b9 &#061; 1 \u50cf\u7d20&#xff0c;\u82e5\u504f\u5c0f\u53ef\u4e58\u4ee5 DPI \u7cfb\u6570&#xff09;<br \/>\n                    width: myDocument.pagePointSize(index).width * helpToolDialog.scaleFactor<br \/>\n                    height: myDocument.pagePointSize(index).height * helpToolDialog.scaleFactor<br \/>\n                    anchors.centerIn: parent<br \/>\n                    \/\/ \u52a0\u8f7d\u5b8c\u6210\u540e\u66f4\u65b0\u9002\u5e94\u5c4f\u5e55\u7684\u7f29\u653e\u503c<br \/>\n                    onStatusChanged: {<br \/>\n                        if (status &#061;&#061;&#061; Image.Ready &amp;&amp; index &#061;&#061;&#061; 0) {<br \/>\n                            let availW &#061; currentHelpImage.width &#8211; vbar.width<br \/>\n                            let availH &#061; currentHelpImage.height<br \/>\n                            fitScale &#061; Math.min(availW \/ myDocument.pagePointSize(index).width, availH \/ myDocument.pagePointSize(index).height)<br \/>\n                            console.log(&#034;fitScale:&#034;, fitScale, &#034;height:&#034;, availH)<br \/>\n                            scaleFactor &#061; fitScale<br \/>\n                            \/\/english book<br \/>\n                            fitScaleByEnglishBook &#061; Math.min(scaleFactor * 1.0, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n                            \/\/chinese book<br \/>\n                            fitScale &#061; Math.min(scaleFactor * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n                            fitScale &#061; Math.min(fitScale * 1.25, 10.0)   \/\/ \u6700\u5927\u653e\u5927 10 \u500d<br \/>\n                            console.log(&#034;fitScale:&#034;, scaleFactor, &#034; fitScaleByEnglishBook:&#034;, fitScaleByEnglishBook)<br \/>\n                            if( 0 &#061;&#061;&#061; langType){<br \/>\n                                scaleFactor &#061; fitScale<br \/>\n                                console.log(&#034;langType:0 fitScale:&#034;, scaleFactor)<br \/>\n                            }<br \/>\n                            else{<br \/>\n                                scaleFactor &#061; fitScaleByEnglishBook<br \/>\n                                console.log(&#034;langType:1 fitScale:&#034;, scaleFactor)<br \/>\n                            }<br \/>\n                            currentHelpImageIsReadyed &#061; true<br \/>\n                        }<br \/>\n                    }<br \/>\n                }<br \/>\n            }<\/p>\n<p>            ScrollBar.vertical: ScrollBar {<br \/>\n                   id: vbar<br \/>\n                   policy: ScrollBar.AlwaysOn<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>main.cpp&#xff08;\u591a\u56fe\u7247&#xff09;<\/p>\n<p>#include &lt;QGuiApplication&gt;<br \/>\n#include &lt;QQmlApplicationEngine&gt;<\/p>\n<p>int main(int argc, char *argv[])<br \/>\n{<br \/>\n    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);<\/p>\n<p>    \/\/qputenv(&#034;QT_IM_MODULE&#034;, QByteArray(&#034;qtvirtualkeyboard&#034;));<br \/>\n    QApplication app(argc, argv);<\/p>\n<p>    QQmlApplicationEngine engine;<br \/>\n    system.setEngine(&amp;engine);<\/p>\n<p>    \/\/ get helpbook image list<br \/>\n    \/\/ \u83b7\u53d6\u7a0b\u5e8f\u76ee\u5f55<br \/>\n    QString appDir &#061; QCoreApplication::applicationDirPath();<br \/>\n    QDir dirChineseHelpbookImage(appDir &#043; &#034;\/helpbook\/cn&#034;);<br \/>\n    QDir dirEnglishHelpbookImage(appDir &#043; &#034;\/helpbook\/en&#034;);<\/p>\n<p>    \/\/ \u53ea\u53d6\u6587\u4ef6&#xff0c;\u4e14\u53ea\u53d6 PNG&#xff08;\u53ef\u9009&#xff09;<br \/>\n    dirChineseHelpbookImage.setFilter(QDir::Files);<br \/>\n    dirChineseHelpbookImage.setNameFilters(QStringList() &lt;&lt; &#034;*.png&#034;);  \/\/ \u53ea\u4fdd\u7559 PNG<br \/>\n    dirChineseHelpbookImage.setSorting(QDir::Name); \/\/ \u6309\u540d\u79f0\u5347\u5e8f<\/p>\n<p>    \/\/ \u83b7\u53d6\u6587\u4ef6\u4fe1\u606f\u5217\u8868&#xff0c;\u5f97\u5230\u5b8c\u6574\u8def\u5f84<br \/>\n    QFileInfoList infoListByChinese &#061; dirChineseHelpbookImage.entryInfoList();<br \/>\n    QStringList filePathsByChinese;<br \/>\n    foreach (const QFileInfo &amp;info, infoListByChinese) {<br \/>\n        filePathsByChinese.append(info.absoluteFilePath());  \/\/ \u7edd\u5bf9\u8def\u5f84<br \/>\n    }<br \/>\n    QList&lt;QUrl&gt; urlPathsByChinese;<br \/>\n    for (const QString &amp;path : filePathsByChinese) {<br \/>\n        urlPathsByChinese.append(QUrl::fromLocalFile(path));<br \/>\n    }<\/p>\n<p>    dirEnglishHelpbookImage.setFilter(QDir::Files);<br \/>\n    dirEnglishHelpbookImage.setNameFilters(QStringList() &lt;&lt; &#034;*.png&#034;);  \/\/ \u53ea\u4fdd\u7559 PNG<br \/>\n    dirEnglishHelpbookImage.setSorting(QDir::Name); \/\/ \u6309\u540d\u79f0\u5347\u5e8f<\/p>\n<p>    \/\/ \u83b7\u53d6\u6587\u4ef6\u4fe1\u606f\u5217\u8868&#xff0c;\u5f97\u5230\u5b8c\u6574\u8def\u5f84<br \/>\n    QFileInfoList infoListByEnglish &#061; dirEnglishHelpbookImage.entryInfoList();<br \/>\n    QStringList filePathsByEnglish;<br \/>\n    foreach (const QFileInfo &amp;info, infoListByEnglish) {<br \/>\n        filePathsByEnglish.append(info.absoluteFilePath());  \/\/ \u7edd\u5bf9\u8def\u5f84<br \/>\n    }<br \/>\n    QList&lt;QUrl&gt; urlPathsByEnglish;<br \/>\n    for (const QString &amp;path : filePathsByEnglish) {<br \/>\n        urlPathsByEnglish.append(QUrl::fromLocalFile(path));<br \/>\n    }<\/p>\n<p>    \/\/ \u521b\u5efa\u6a21\u578b\u5e76\u66b4\u9732\u7ed9 QML<br \/>\n    engine.rootContext()-&gt;setContextProperty(&#034;helpbookImagePathsModelByChinese&#034;, QVariant::fromValue(urlPathsByChinese));<br \/>\n    engine.rootContext()-&gt;setContextProperty(&#034;helpbookImagePathsModelByEnglish&#034;, QVariant::fromValue(urlPathsByEnglish));<\/p>\n<p>    engine.load(QUrl(QStringLiteral(&#034;qrc:\/main.qml&#034;)));\/\/main.qml\u4e2d\u5f15\u7528helpset.qml<br \/>\n    return app.exec();<br \/>\n}<\/p>\n<p>\u793a\u4f8b\u6548\u679c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"999\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260815054222-6a7ffc3e36438.png\" width=\"1320\" \/><\/p>\n<p>main.cpp&#xff08;\u5355\u4e2apdf&#xff09;&#xff0c;\u5c06pdf\u6587\u4ef6\u6dfb\u52a0\u8d44\u6e90\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>#include &lt;QGuiApplication&gt;<br \/>\n#include &lt;QQmlApplicationEngine&gt;<\/p>\n<p>int main(int argc, char *argv[])<br \/>\n{<br \/>\n    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);<\/p>\n<p>    \/\/qputenv(&#034;QT_IM_MODULE&#034;, QByteArray(&#034;qtvirtualkeyboard&#034;));<br \/>\n    QApplication app(argc, argv);<\/p>\n<p>    QQmlApplicationEngine engine;<br \/>\n    system.setEngine(&amp;engine);<\/p>\n<p>    engine.load(QUrl(QStringLiteral(&#034;qrc:\/main.qml&#034;)));\/\/main.qml\u4e2d\u5f15\u7528helpset.qml<br \/>\n    return app.exec();<br \/>\n}<\/p>\n<p>pdf\u63d2\u4ef6\u52a0\u8f7dqrc\u8d44\u6e90\u6587\u4ef6\u53ef\u4ee5\u6b63\u5e38\u9884\u89c8&#xff0c;\u4f46\u662f\u52a0\u8f7d\u672c\u5730pdf\u6587\u4ef6\u65e0\u6cd5\u9884\u89c8\u3002\u91c7\u7528WebEngineView\u65b9\u5f0f\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>WebEngineView {<br \/>\n    id: webView<br \/>\n    anchors.fill: parent<br \/>\n    settings.pluginsEnabled: true<br \/>\n    url: &#034;https:\/\/www.adobe.com\/support\/products\/enterprise\/knowledgecenter\/media\/c4611_sample_explain.pdf&#034;  \/\/ \u6d4b\u8bd5\u5728\u7ebf PDF<br \/>\n    onLoadingError: {<br \/>\n        console.error(&#034;\u9519\u8bef:&#034;, errorString, &#034;URL:&#034;, failingUrl)<br \/>\n    }<br \/>\n} <\/p>\n<p>\u65e2\u7136\u60a8\u5df2\u7ecf\u786e\u8ba4\u00a0WebEngineView\u00a0\u53ef\u4ee5\u52a0\u8f7d\u5728\u7ebf PDF&#xff08;\u5e94\u8be5\u6ca1\u95ee\u9898&#xff09;&#xff0c;\u4f46\u672c\u5730\u00a0file:\/\/\/D:\/help.pdf\u00a0\u5931\u8d25&#xff0c;\u53ef\u80fd\u7684\u539f\u56e0&#xff1a;<\/p>\n<li>\n<p>\u8de8\u57df\u9650\u5236&#xff1a;\u672c\u5730\u6587\u4ef6\u53ef\u80fd\u88ab\u89c6\u4e3a\u201c\u4e0d\u5b89\u5168\u6765\u6e90\u201d&#xff0c;\u9700\u8981\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u6216\u547d\u4ee4\u884c\u53c2\u6570\u5173\u95ed\u5b89\u5168\u7b56\u7565&#xff08;\u4ec5\u7528\u4e8e\u5f00\u53d1&#xff09;\u3002<\/p>\n<ul>\n<li>\n<p>\u5728\u00a0main.cpp\u00a0\u4e2d\u00a0QGuiApplication\u00a0\u521d\u59cb\u5316\u524d\u6dfb\u52a0&#xff1a;<\/p>\n<p> qputenv(&#034;QTWEBENGINE_DISABLE_SANDBOX&#034;, &#034;1&#034;);<br \/>\nqputenv(&#034;QTWEBENGINE_REMOTE_DEBUGGING&#034;, &#034;9222&#034;);  \/\/ \u53ef\u9009&#xff0c;\u4fbf\u4e8e\u8c03\u8bd5 <\/li>\n<\/ul>\n<\/li>\n<p>2.\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u51fa\u4e8e\u5b89\u5168\u8003\u8651&#xff0c;file:\/\/\u00a0\u534f\u8bae\u88ab\u7981\u6b62\u52a0\u8f7d\u4efb\u4f55\u672c\u5730\u8d44\u6e90&#xff0c;\u5305\u62ec PDF \u6587\u4ef6\u3002\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u9700\u8981\u4ece\u6839\u6e90\u4e0a\u653e\u5bbd\u8fd9\u4e9b\u9650\u5236\u3002<\/p>\n<p>\u5728\u4f60\u7684\u00a0main.cpp\u00a0\u6587\u4ef6\u4e2d&#xff0c;\u521b\u5efa\u00a0QApplication\u00a0\u6216\u00a0QGuiApplication\u00a0\u5b9e\u4f8b\u65f6&#xff0c;\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u00a0&#8211;disable-web-security\u00a0\u6807\u5fd7\u3002<\/p>\n<p>\u4ee3\u7801\u793a\u4f8b&#xff1a;<\/p>\n<p>#include &lt;QGuiApplication&gt;<br \/>\n#include &lt;QQmlApplicationEngine&gt;<\/p>\n<p>int main(int argc, char *argv[])<br \/>\n{<br \/>\n    \/\/ 1. \u51c6\u5907\u4f20\u9012\u7ed9 QGuiApplication \u7684\u53c2\u6570<br \/>\n    \/\/ \u5173\u952e&#xff1a;\u5c06 &#034;&#8211;disable-web-security&#034; \u6dfb\u52a0\u5230\u53c2\u6570\u5217\u8868\u4e2d<br \/>\n    char* new_argv[] &#061; { argv[0], const_cast&lt;char*&gt;(&#034;&#8211;disable-web-security&#034;) };<br \/>\n    int new_argc &#061; 2;<\/p>\n<p>    \/\/ 2. \u4f7f\u7528\u65b0\u7684\u53c2\u6570\u5217\u8868\u521b\u5efa QGuiApplication<br \/>\n    QGuiApplication app(new_argc, new_argv);<br \/>\n    \/\/ &#8230; \u4f60\u5176\u4ed6\u7684\u521d\u59cb\u5316\u4ee3\u7801 &#8230;<br \/>\n    QQmlApplicationEngine engine;<br \/>\n    engine.load(QUrl(QStringLiteral(&#034;qrc:\/main.qml&#034;)));<\/p>\n<p>    return app.exec();<br \/>\n} <\/p>\n<p>\u5b89\u5168\u8b66\u544a&#xff1a;&#8211;disable-web-security\u00a0\u4f1a\u5b8c\u5168\u7981\u7528\u540c\u6e90\u7b56\u7565&#xff0c;\u4ec5\u5efa\u8bae\u5728\u5f00\u53d1\u6d4b\u8bd5\u6216\u5b8c\u5168\u53d7\u63a7\u7684\u5185\u90e8\u5e94\u7528\u4e2d\u4f7f\u7528\u3002\u4e25\u7981\u5728\u9762\u5411\u516c\u7f51\u6216\u4e0d\u4fe1\u4efb\u7528\u6237\u7684\u5e94\u7528\u4e2d\u4f7f\u7528\u6b64\u53c2\u6570&#xff0c;\u8fd9\u4f1a\u5e26\u6765\u4e25\u91cd\u7684\u5b89\u5168\u98ce\u9669\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001qml\u8bf4\u660e\u4e66\u9884\u89c8\u5b9e\u73b0\u65b9\u5f0f<br \/>\n1\u3001pdf\u8f6c\u6362\u6210\u56fe\u7247\u591a\u5f20\u56fe\u7247\u9884\u89c8\u3002<br \/>\n2\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6pdfDocumentImage<br \/>\n3\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6PdfPageView\/PdfMultiPageView<br \/>\n4\u3001WebEngineView\u52a0\u8f7dhttp:\/\/xxx.pdf\u6216\u8005qrc\u8d44\u6e90pdf\u6587\u4ef6\u3002<br \/>\n5\u3001popplerPlugin\u63d2\u4ef6\u65b9\u5f0f<br \/>\n6\u3001WebEngineView\u52a0\u8f7dhtml\u6587\u4ef6&#xff08;pdftohtml\u5c06pdf\u8f6c\u6362\u6210html&#xff09;<br \/>\n\u6ce8\u610f&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":94847,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5664],"topic":[],"class_list":["post-94848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-qml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/94848.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001qml\u8bf4\u660e\u4e66\u9884\u89c8\u5b9e\u73b0\u65b9\u5f0f 1\u3001pdf\u8f6c\u6362\u6210\u56fe\u7247\u591a\u5f20\u56fe\u7247\u9884\u89c8\u3002 2\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6pdfDocumentImage 3\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6PdfPageView\/PdfMultiPageView 4\u3001WebEngineView\u52a0\u8f7dhttp:\/\/xxx.pdf\u6216\u8005qrc\u8d44\u6e90pdf\u6587\u4ef6\u3002 5\u3001popplerPlugin\u63d2\u4ef6\u65b9\u5f0f 6\u3001WebEngineView\u52a0\u8f7dhtml\u6587\u4ef6&#xff08;pdftohtml\u5c06pdf\u8f6c\u6362\u6210html&#xff09; \u6ce8\u610f&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94848.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-15T05:42:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260815054222-6a7ffc3e36438.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94848.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94848.html\",\"name\":\"qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-15T05:42:26+00:00\",\"dateModified\":\"2026-08-15T05:42:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94848.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94848.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94848.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"qml\u8bf4\u660e\u4e66\u9884\u89c8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/94848.html","og_locale":"zh_CN","og_type":"article","og_title":"qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001qml\u8bf4\u660e\u4e66\u9884\u89c8\u5b9e\u73b0\u65b9\u5f0f 1\u3001pdf\u8f6c\u6362\u6210\u56fe\u7247\u591a\u5f20\u56fe\u7247\u9884\u89c8\u3002 2\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6pdfDocumentImage 3\u3001qrc\u8d44\u6e90pdf\u6587\u4ef6PdfPageView\/PdfMultiPageView 4\u3001WebEngineView\u52a0\u8f7dhttp:\/\/xxx.pdf\u6216\u8005qrc\u8d44\u6e90pdf\u6587\u4ef6\u3002 5\u3001popplerPlugin\u63d2\u4ef6\u65b9\u5f0f 6\u3001WebEngineView\u52a0\u8f7dhtml\u6587\u4ef6&#xff08;pdftohtml\u5c06pdf\u8f6c\u6362\u6210html&#xff09; \u6ce8\u610f&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/94848.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-15T05:42:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260815054222-6a7ffc3e36438.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94848.html","url":"https:\/\/www.wsisp.com\/helps\/94848.html","name":"qml\u8bf4\u660e\u4e66\u9884\u89c8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-15T05:42:26+00:00","dateModified":"2026-08-15T05:42:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94848.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94848.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94848.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"qml\u8bf4\u660e\u4e66\u9884\u89c8"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=94848"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94848\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/94847"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94848"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}