<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # QGraphicsWebView Class Reference ## [[QtWebKit](index.htm) module] 該QGraphicsWebView類允許Web內容被添加到一個[GraphicsView](index.htm#graphicsview)。[More...](#details) 繼承[QGraphicsWidget](qgraphicswidget.html)。 ### Methods * `__init__ (self, QGraphicsItem?parent?=?None)` * `back (self)` * `contextMenuEvent (self, QGraphicsSceneContextMenuEvent)` * `dragEnterEvent (self, QGraphicsSceneDragDropEvent)` * `dragLeaveEvent (self, QGraphicsSceneDragDropEvent)` * `dragMoveEvent (self, QGraphicsSceneDragDropEvent)` * `dropEvent (self, QGraphicsSceneDragDropEvent)` * `bool event (self, QEvent)` * `bool findText (self, QString?subString, QWebPage.FindFlags?options?=?0)` * `focusInEvent (self, QFocusEvent)` * `bool focusNextPrevChild (self, bool?next)` * `focusOutEvent (self, QFocusEvent)` * `forward (self)` * `QWebHistory history (self)` * `hoverLeaveEvent (self, QGraphicsSceneHoverEvent)` * `hoverMoveEvent (self, QGraphicsSceneHoverEvent)` * `QIcon icon (self)` * `inputMethodEvent (self, QInputMethodEvent)` * `QVariant inputMethodQuery (self, Qt.InputMethodQuery?query)` * `bool isModified (self)` * `bool isTiledBackingStoreFrozen (self)` * `QVariant itemChange (self, QGraphicsItem.GraphicsItemChange?change, QVariant?value)` * `keyPressEvent (self, QKeyEvent)` * `keyReleaseEvent (self, QKeyEvent)` * `load (self, QUrl?url)` * `load (self, QNetworkRequest?request, QNetworkAccessManager.Operation?operation?=?QNetworkAccessManager.GetOperation, QByteArray?body?=?QByteArray())` * `mouseDoubleClickEvent (self, QGraphicsSceneMouseEvent)` * `mouseMoveEvent (self, QGraphicsSceneMouseEvent)` * `mousePressEvent (self, QGraphicsSceneMouseEvent)` * `mouseReleaseEvent (self, QGraphicsSceneMouseEvent)` * `QWebPage page (self)` * `QAction pageAction (self, QWebPage.WebAction?action)` * `paint (self, QPainter?painter, QStyleOptionGraphicsItem?option, QWidget?widget?=?None)` * `reload (self)` * `QPainter.RenderHints renderHints (self)` * `bool resizesToContents (self)` * `bool sceneEvent (self, QEvent)` * `setContent (self, QByteArray?data, QString?mimeType?=?QString(), QUrl?baseUrl?=?QUrl())` * `setGeometry (self, QRectF?rect)` * `setHtml (self, QString?html, QUrl?baseUrl?=?QUrl())` * `setPage (self, QWebPage)` * `setRenderHint (self, QPainter.RenderHint?hint, bool?enabled?=?True)` * `setRenderHints (self, QPainter.RenderHints?hints)` * `setResizesToContents (self, bool?enabled)` * `setTiledBackingStoreFrozen (self, bool?frozen)` * `QWebSettings settings (self)` * `setUrl (self, QUrl)` * `setZoomFactor (self, float)` * `QSizeF sizeHint (self, Qt.SizeHint?which, QSizeF?constraint)` * `stop (self)` * `QString title (self)` * `triggerPageAction (self, QWebPage.WebAction?action, bool?checked?=?False)` * `updateGeometry (self)` * `QUrl url (self)` * `wheelEvent (self, QGraphicsSceneWheelEvent)` * `float zoomFactor (self)` ### Qt Signals * `void iconChanged ()` * `void linkClicked (const QUrl&)` * `void loadFinished (bool)` * `void loadProgress (int)` * `void loadStarted ()` * `void statusBarMessage (const QString&)` * `void titleChanged (const QString&)` * `void urlChanged (const QUrl&)` * * * ## Detailed Description 該QGraphicsWebView類允許Web內容被添加到一個[GraphicsView](index.htm#graphicsview)。 這個類的一個實例呈現從URL網頁內容或提供的數據,使用的功能[QtWebKit](index.htm)模塊。 如果該項目的寬度和高度都沒有設置,它們將默認為800和600 ,分別為。如果網頁內容比越大,滾動條,如果沒有明確禁止將被顯示。 ### Browser Features 許多所提供的功能,信號和屬性[QWebView](qwebview.html)也可用于這一項目,使其成為簡單,適應現有的代碼使用QGraphicsWebView代替[QWebView](qwebview.html)。 該項目采用的是[QWebPage](qwebpage.html)反對執行Web內容的呈現,這樣就可以用得到[page](qgraphicswebview.html#page)()函數,使文檔本身進行訪問和修改。 與[QWebView](qwebview.html)使用項目記錄瀏覽歷史記錄[QWebHistory](qwebhistory.html)對象,訪問使用[history](qgraphicswebview.html#history)()函數。該[QWebSettings](qwebsettings.html)對象,定義了瀏覽器的配置可以用以下方式獲得[settings](qgraphicswebview.html#settings)( )函數,使像插件支持自定義每個項目的功能。 * * * ## Method Documentation ``` QGraphicsWebView.__init__ (self, QGraphicsItem?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個空[QGraphicsWebView](qgraphicswebview.html)與父_parent_。 **See also** [load](qgraphicswebview.html#load)( ) 。 ``` QGraphicsWebView.back (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void back()`。 便利插槽加載以前的文檔中通過導航鏈接建立文件清單。什么都不做,如果沒有以前的文檔。 **See also** [forward](qgraphicswebview.html#forward)( ) 。 ``` QGraphicsWebView.contextMenuEvent (self, QGraphicsSceneContextMenuEvent) ``` 從重新實現[QGraphicsItem.contextMenuEvent](qgraphicsitem.html#contextMenuEvent)( ) 。 ``` QGraphicsWebView.dragEnterEvent (self, QGraphicsSceneDragDropEvent) ``` 從重新實現[QGraphicsItem.dragEnterEvent](qgraphicsitem.html#dragEnterEvent)( ) 。 ``` QGraphicsWebView.dragLeaveEvent (self, QGraphicsSceneDragDropEvent) ``` 從重新實現[QGraphicsItem.dragLeaveEvent](qgraphicsitem.html#dragLeaveEvent)( ) 。 ``` QGraphicsWebView.dragMoveEvent (self, QGraphicsSceneDragDropEvent) ``` 從重新實現[QGraphicsItem.dragMoveEvent](qgraphicsitem.html#dragMoveEvent)( ) 。 ``` QGraphicsWebView.dropEvent (self, QGraphicsSceneDragDropEvent) ``` 從重新實現[QGraphicsItem.dropEvent](qgraphicsitem.html#dropEvent)( ) 。 ``` bool QGraphicsWebView.event (self, QEvent) ``` 從重新實現[QObject.event](qobject.html#event)( ) 。 ``` bool QGraphicsWebView.findText (self, QString?subString, QWebPage.FindFlags?options?=?0) ``` 查找指定的字符串,_subString_在該頁面中,使用給定的_options_。 如果HighlightAllOccurrences標志傳遞,函數將突出存在于頁面中的所有事件。所有后續調用將延長的亮點,而不是取代它,以出現新的字符串。 如果HighlightAllOccurrences標志不通過,該函數將選擇的發生,所有后續調用將取代目前出現的下一個。 要清除選擇,只傳遞一個空字符串。 返回True如果_subString_結果發現,否則返回False 。 **See also** [QWebPage.selectedText](qwebpage.html#selectedText-prop)()和[QWebPage.selectionChanged](qwebpage.html#selectionChanged)( ) 。 ``` QGraphicsWebView.focusInEvent (self, QFocusEvent) ``` 從重新實現[QGraphicsItem.focusInEvent](qgraphicsitem.html#focusInEvent)( ) 。 ``` bool QGraphicsWebView.focusNextPrevChild (self, bool?next) ``` 從重新實現[QGraphicsWidget.focusNextPrevChild](qgraphicswidget.html#focusNextPrevChild)( ) 。 ``` QGraphicsWebView.focusOutEvent (self, QFocusEvent) ``` 從重新實現[QGraphicsItem.focusOutEvent](qgraphicsitem.html#focusOutEvent)( ) 。 ``` QGraphicsWebView.forward (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void forward()`。 便利插槽,加載下一個文檔中通過導航鏈接建立文件清單。什么都不做,如果沒有下一個文件。 **See also** [back](qgraphicswebview.html#back)( ) 。 ``` QWebHistory QGraphicsWebView.history (self) ``` [ 返回一個指針,指向的導航網頁視圖的歷史。 它相當于 ``` view->page()->history(); ``` ``` QGraphicsWebView.hoverLeaveEvent (self, QGraphicsSceneHoverEvent) ``` ](qwebhistory.html) [從重新實現](qwebhistory.html)[QGraphicsItem.hoverLeaveEvent](qgraphicsitem.html#hoverLeaveEvent)( ) 。 ``` QGraphicsWebView.hoverMoveEvent (self, QGraphicsSceneHoverEvent) ``` 從重新實現[QGraphicsItem.hoverMoveEvent](qgraphicsitem.html#hoverMoveEvent)( ) 。 ``` QIcon QGraphicsWebView.icon (self) ``` [ ``` QGraphicsWebView.inputMethodEvent (self, QInputMethodEvent) ``` ](qicon.html) [從重新實現](qicon.html)[QGraphicsItem.inputMethodEvent](qgraphicsitem.html#inputMethodEvent)( ) 。 ``` QVariant QGraphicsWebView.inputMethodQuery (self, Qt.InputMethodQuery?query) ``` 從重新實現[QGraphicsItem.inputMethodQuery](qgraphicsitem.html#inputMethodQuery)( ) 。 ``` bool QGraphicsWebView.isModified (self) ``` ``` bool QGraphicsWebView.isTiledBackingStoreFrozen (self) ``` ``` QVariant QGraphicsWebView.itemChange (self, QGraphicsItem.GraphicsItemChange?change, QVariant?value) ``` 從重新實現[QGraphicsItem.itemChange](qgraphicsitem.html#itemChange)( ) 。 ``` QGraphicsWebView.keyPressEvent (self, QKeyEvent) ``` 從重新實現[QGraphicsItem.keyPressEvent](qgraphicsitem.html#keyPressEvent)( ) 。 ``` QGraphicsWebView.keyReleaseEvent (self, QKeyEvent) ``` 從重新實現[QGraphicsItem.keyReleaseEvent](qgraphicsitem.html#keyReleaseEvent)( ) 。 ``` QGraphicsWebView.load (self, QUrl?url) ``` 指定的負載_url_并顯示它。 **Note:**該視圖保持不變,直到足夠的數據已經到達,以顯示新_url_。 **See also** [setUrl](qgraphicswebview.html#url-prop)( )[url](qgraphicswebview.html#url-prop)()和[urlChanged](qgraphicswebview.html#urlChanged)( ) 。 ``` QGraphicsWebView.load (self, QNetworkRequest?request, QNetworkAccessManager.Operation?operation?=?QNetworkAccessManager.GetOperation, QByteArray?body?=?QByteArray()) ``` 加載一個網絡請求,_request_使用中規定的方法_operation_。 _body_是可選的,并且僅用于POST操作。 **Note:**該視圖保持不變,直到足夠的數據已經到達,以顯示新的URL。 **See also** [url](qgraphicswebview.html#url-prop)()和[urlChanged](qgraphicswebview.html#urlChanged)( ) 。 ``` QGraphicsWebView.mouseDoubleClickEvent (self, QGraphicsSceneMouseEvent) ``` 從重新實現[QGraphicsItem.mouseDoubleClickEvent](qgraphicsitem.html#mouseDoubleClickEvent)( ) 。 ``` QGraphicsWebView.mouseMoveEvent (self, QGraphicsSceneMouseEvent) ``` 從重新實現[QGraphicsItem.mouseMoveEvent](qgraphicsitem.html#mouseMoveEvent)( ) 。 ``` QGraphicsWebView.mousePressEvent (self, QGraphicsSceneMouseEvent) ``` 從重新實現[QGraphicsItem.mousePressEvent](qgraphicsitem.html#mousePressEvent)( ) 。 ``` QGraphicsWebView.mouseReleaseEvent (self, QGraphicsSceneMouseEvent) ``` 從重新實現[QGraphicsItem.mouseReleaseEvent](qgraphicsitem.html#mouseReleaseEvent)( ) 。 ``` QWebPage QGraphicsWebView.page (self) ``` [ 返回一個指針,指向底層的網頁。 ](qwebpage.html) [**See also**](qwebpage.html) [setPage](qgraphicswebview.html#setPage)( ) 。 ``` QAction QGraphicsWebView.pageAction (self, QWebPage.WebAction?action) ``` [](qaction.html) [返回一個指針,指向一個](qaction.html)[QAction](qaction.html)封裝指定網絡行動_action_。 ``` QGraphicsWebView.paint (self, QPainter?painter, QStyleOptionGraphicsItem?option, QWidget?widget?=?None) ``` 從重新實現[QGraphicsItem.paint](qgraphicsitem.html#paint)( ) 。 ``` QGraphicsWebView.reload (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void reload()`。 重新加載當前文檔。 **See also** [stop](qgraphicswebview.html#stop)()和[loadStarted](qgraphicswebview.html#loadStarted)( ) 。 ``` QPainter.RenderHints QGraphicsWebView.renderHints (self) ``` [ ``` bool QGraphicsWebView.resizesToContents (self) ``` ``` bool QGraphicsWebView.sceneEvent (self, QEvent) ``` ](index.htm) [從重新實現](index.htm)[QGraphicsItem.sceneEvent](qgraphicsitem.html#sceneEvent)( ) 。 ``` QGraphicsWebView.setContent (self, QByteArray?data, QString?mimeType?=?QString(), QUrl?baseUrl?=?QUrl()) ``` 設置捲筒紙graphicsitem的內容以指定的內容_data_。如果_mimeType_參數為空它是目前假設內容是HTML,但在未來的版本中,我們可能會引入自動檢測。 在內容引用的外部對象的位置相對_baseUrl_。 該_data_立即加載;外部對象異步加載。 **See also** [load](qgraphicswebview.html#load)( )[setHtml](qgraphicswebview.html#setHtml)()和[QWebFrame.toHtml](qwebframe.html#toHtml)( ) 。 ``` QGraphicsWebView.setGeometry (self, QRectF?rect) ``` 從重新實現[QGraphicsLayoutItem.setGeometry](qgraphicslayoutitem.html#setGeometry)( ) 。 ``` QGraphicsWebView.setHtml (self, QString?html, QUrl?baseUrl?=?QUrl()) ``` 設置Web視圖的內容的指定_html_。 外部對象,如樣式表或HTML文檔中引用的圖片的位置相對于_baseUrl_。 該_html_立即加載;外部對象異步加載。 使用此方法時, WebKit的假定外部資源,例如JavaScript程序或樣式表,除非另有規定被編碼為UTF -8 。例如,外部腳本的編碼可以通過HTML腳本標記的charset屬性來指定。備選地,編碼也可以由Web服務器指定。 這相當于一個方便的功能,使用setContent ( HTML , “為text / html ” , baseURL即可) 。 **Warning:**此功能僅用于HTML ,為其他MIME類型(即XHTML , SVG )[setContent](qgraphicswebview.html#setContent)( )應該使用。 **See also** [load](qgraphicswebview.html#load)( )[setContent](qgraphicswebview.html#setContent)( )[QWebFrame.toHtml](qwebframe.html#toHtml)()和[QWebFrame.setContent](qwebframe.html#setContent)( ) 。 ``` QGraphicsWebView.setPage (self, QWebPage) ``` 品牌_page_網頁graphicsitem的新網頁。 父[QObject](qobject.html)該頁面提供的仍然是對象的所有者。如果當前文檔是Web視圖的孩子,它會被刪除。 **See also** [page](qgraphicswebview.html#page)( ) 。 ``` QGraphicsWebView.setRenderHint (self, QPainter.RenderHint?hint, bool?enabled?=?True) ``` If _enabled_誠然,啟用指定的渲染_hint_否則禁用它。 此功能被引入Qt的4.8 。 **See also** [renderHints](qgraphicswebview.html#renderHints-prop)和[QPainter.renderHints](qpainter.html#renderHints)( ) 。 ``` QGraphicsWebView.setRenderHints (self, QPainter.RenderHints?hints) ``` ``` QGraphicsWebView.setResizesToContents (self, bool?enabled) ``` ``` QGraphicsWebView.setTiledBackingStoreFrozen (self, bool?frozen) ``` ``` QWebSettings QGraphicsWebView.settings (self) ``` [ 返回一個指針,指向視圖/頁面設置特定對象。 它相當于 ``` view->page()->settings(); ``` ](qwebsettings.html) [**See also**](qwebsettings.html) [QWebSettings.globalSettings](qwebsettings.html#globalSettings)( ) 。 ``` QGraphicsWebView.setUrl (self, QUrl) ``` ``` QGraphicsWebView.setZoomFactor (self, float) ``` ``` QSizeF QGraphicsWebView.sizeHint (self, Qt.SizeHint?which, QSizeF?constraint) ``` [](qsizef.html) [從重新實現](qsizef.html)[QGraphicsLayoutItem.sizeHint](qgraphicslayoutitem.html#sizeHint)( ) 。 ``` QGraphicsWebView.stop (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void stop()`。 便利插槽,停止加載該文件。 **See also** [reload](qgraphicswebview.html#reload)()和[loadFinished](qgraphicswebview.html#loadFinished)( ) 。 ``` QString QGraphicsWebView.title (self) ``` ``` QGraphicsWebView.triggerPageAction (self, QWebPage.WebAction?action, bool?checked?=?False) ``` 觸發指定的_action_。如果是指定了辨認的動作_checked_假定狀態。 **See also** [pageAction](qgraphicswebview.html#pageAction)( ) 。 ``` QGraphicsWebView.updateGeometry (self) ``` 從重新實現[QGraphicsLayoutItem.updateGeometry](qgraphicslayoutitem.html#updateGeometry)( ) 。 ``` QUrl QGraphicsWebView.url (self) ``` [ ``` QGraphicsWebView.wheelEvent (self, QGraphicsSceneWheelEvent) ``` ](qurl.html) [從重新實現](qurl.html)[QGraphicsItem.wheelEvent](qgraphicsitem.html#wheelEvent)( ) 。 ``` float QGraphicsWebView.zoomFactor (self) ``` * * * ## Qt Signal Documentation ``` void iconChanged () ``` 這是該信號的默認超載。 這個信號時頁面的圖標被加載或改變被發射。 為了讓圖標加載,則需要使用設置一個圖標數據庫路徑[QWebSettings.setIconDatabasePath](qwebsettings.html#setIconDatabasePath)( ) 。 **See also** [icon](qgraphicswebview.html#icon-prop)()和[QWebSettings.setIconDatabasePath](qwebsettings.html#setIconDatabasePath)( ) 。 ``` void linkClicked (const QUrl&) ``` 這是該信號的默認超載。 每當用戶點擊一個鏈接這個信號被發射以及頁面的linkDelegationPolicy屬性設置為處理委讬給指定的鏈接_url_。 **See also** [QWebPage.linkDelegationPolicy](qwebpage.html#linkDelegationPolicy-prop)( ) 。 ``` void loadFinished (bool) ``` 這是該信號的默認超載。 當頁面的加載完成時,這個信號被發射。_ok_將指示負載是否成功,或發生任何錯誤。 **See also** [loadStarted](qgraphicswebview.html#loadStarted)( ) 。 ``` void loadProgress (int) ``` 這是該信號的默認超載。 每個網頁中的元素完成加載和整體加載進度前進時,這個信號被發射。 這個信號可以跟蹤所有子幀的進展。 電流值是由所提供_progress_和秤從0到100 ,這是默認范圍[QProgressBar](qprogressbar.html)。 **See also** [loadStarted](qgraphicswebview.html#loadStarted)()和[loadFinished](qgraphicswebview.html#loadFinished)( ) 。 ``` void loadStarted () ``` 這是該信號的默認超載。 當開始頁面的新負載,這個信號被發射。 **See also** [loadProgress](qgraphicswebview.html#loadProgress)()和[loadFinished](qgraphicswebview.html#loadFinished)( ) 。 ``` void statusBarMessage (const QString&) ``` 這是該信號的默認超載。 這個信號被發射時,狀態欄_text_由頁改變。 ``` void titleChanged (const QString&) ``` 這是該信號的默認超載。 這個信號被發射時的_title_的主框架的改變。 **See also** [title](qgraphicswebview.html#title-prop)( ) 。 ``` void urlChanged (const QUrl&) ``` 這是該信號的默認超載。 這個信號被發射時的_url_的觀點變化。 **See also** [url](qgraphicswebview.html#url-prop)()和[load](qgraphicswebview.html#load)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看