<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QWebSettings Class Reference ## [[QtWebKit](index.htm) module] 該QWebSettings類提供了一個對象來存儲所使用的設置[QWebPage](qwebpage.html)和[QWebFrame](qwebframe.html)。[More...](#details) ### Types * `enum FontFamily { StandardFont, FixedFont, SerifFont, SansSerifFont, CursiveFont, FantasyFont }` * `enum FontSize { MinimumFontSize, MinimumLogicalFontSize, DefaultFontSize, DefaultFixedFontSize }` * `enum WebAttribute { AutoLoadImages, JavascriptEnabled, JavaEnabled, PluginsEnabled, ..., HyperlinkAuditingEnabled }` * `enum WebGraphic { MissingImageGraphic, MissingPluginGraphic, DefaultFrameIconGraphic, TextAreaSizeGripCornerGraphic, ..., SearchCancelButtonPressedGraphic }` ### Methods * `QString defaultTextEncoding (self)` * `QString fontFamily (self, FontFamily?which)` * `int fontSize (self, FontSize?type)` * `QString localStoragePath (self)` * `resetAttribute (self, WebAttribute?attr)` * `resetFontFamily (self, FontFamily?which)` * `resetFontSize (self, FontSize?type)` * `setAttribute (self, WebAttribute?attr, bool?on)` * `setDefaultTextEncoding (self, QString?encoding)` * `setFontFamily (self, FontFamily?which, QString?family)` * `setFontSize (self, FontSize?type, int?size)` * `setLocalStoragePath (self, QString?path)` * `setUserStyleSheetUrl (self, QUrl?location)` * `bool testAttribute (self, WebAttribute?attr)` * `QUrl userStyleSheetUrl (self)` ### Static Methods * `clearIconDatabase ()` * `clearMemoryCaches ()` * `enablePersistentStorage (QString?path?=?QString())` * `QWebSettings globalSettings ()` * `QString iconDatabasePath ()` * `QIcon iconForUrl (QUrl?url)` * `int maximumPagesInCache ()` * `int offlineStorageDefaultQuota ()` * `QString offlineStoragePath ()` * `QString offlineWebApplicationCachePath ()` * `int offlineWebApplicationCacheQuota ()` * `setIconDatabasePath (QString?location)` * `setMaximumPagesInCache (int?pages)` * `setObjectCacheCapacities (int?cacheMinDeadCapacity, int?cacheMaxDead, int?totalCapacity)` * `setOfflineStorageDefaultQuota (int?maximumSize)` * `setOfflineStoragePath (QString?path)` * `setOfflineWebApplicationCachePath (QString?path)` * `setOfflineWebApplicationCacheQuota (int?maximumSize)` * `setWebGraphic (WebGraphic?type, QPixmap?graphic)` * `QPixmap webGraphic (WebGraphic?type)` * * * ## Detailed Description 該QWebSettings類提供了一個對象來存儲所使用的設置[QWebPage](qwebpage.html)和[QWebFrame](qwebframe.html)。 Each [QWebPage](qwebpage.html)對象都有自己的QWebSettings對象,它配置該頁面的設置。如果未配置設置,那么就抬頭在全局設置對象,可以使用訪問[globalSettings](qwebsettings.html#globalSettings)( ) 。 QWebSettings允許瀏覽器屬性,如字體大小和家庭,自定義樣式表的位置,如JavaScript和插件的通用屬性配置。各個屬性使用設置[setAttribute](qwebsettings.html#setAttribute)()函數。該[WebAttribute](qwebsettings.html#WebAttribute-enum)枚舉進一步描述了每個屬性。 QWebSettings還配置全局屬性,如網頁的內存緩存,圖標數據庫,本地數據庫存儲和離線應用程序存儲。 ### Enabling Plugins 支持瀏覽器插件可以通過設置啟用[PluginsEnabled](qwebsettings.html#WebAttribute-enum)屬性。對于許多應用來說,這個屬性是啟用所有的網頁通過在設置它[global settings object](qwebsettings.html#globalSettings)。[QtWebKit](index.htm)將處理Qt的插件時,總是忽略此設置。允許決定一個Qt插件在其重新實現由客戶端[QWebPage.createPlugin](qwebpage.html#createPlugin)( ) 。 ### Web Application Support WebKit的規定在指定功能的支持[HTML 5](http://www.w3.org/TR/html5/)能夠提高Web應用程序的性能和功能。其中包括客戶端(離線)的存儲和使用Web應用程序緩存。 客戶端(離線)存儲是經過改良的使用Cookie來存儲持久數據的Web應用程序。應用程序可以配置并啟用通過調用使用離線存儲數據庫的[setOfflineStoragePath](qwebsettings.html#setOfflineStoragePath)()以適當的文件路徑,并且可以通過調用限制配額為每個應用程序[setOfflineStorageDefaultQuota](qwebsettings.html#setOfflineStorageDefaultQuota)( ) 。 * * * ## Type Documentation ``` QWebSettings.FontFamily ``` 這個枚舉描述由CSS 2中定義的通用字體家族。欲了解更多信息,請參閱[CSS standard](http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families)。 | Constant | Value | | --- | --- | | `QWebSettings.StandardFont` | `0` | | `QWebSettings.FixedFont` | `1` | | `QWebSettings.SerifFont` | `2` | | `QWebSettings.SansSerifFont` | `3` | | `QWebSettings.CursiveFont` | `4` | | `QWebSettings.FantasyFont` | `5` | ``` QWebSettings.FontSize ``` 這個枚舉變量描述字體大小,通過配置[QWebSettings](qwebsettings.html)。 | Constant | Value | Description | | --- | --- | --- | | `QWebSettings.MinimumFontSize` | `0` | 硬盤最小字體大小。 | | `QWebSettings.MinimumLogicalFontSize` | `1` | 與縮小時所采用的最小的邏輯字體大小[QWebFrame.setTextSizeMultiplier](qwebframe.html#setTextSizeMultiplier)( ) 。 | | `QWebSettings.DefaultFontSize` | `2` | 默認字體大小為普通文字。 | | `QWebSettings.DefaultFixedFontSize` | `3` | 默認字體大小為固定間距的文字。 | ``` QWebSettings.WebAttribute ``` 這個枚舉變量描述了通過配置各種屬性[QWebSettings](qwebsettings.html)。 | Constant | Value | Description | | --- | --- | --- | | `QWebSettings.AutoLoadImages` | `0` | 指定圖像是否在網頁中自動加載。這是默認啟用的。 | | `QWebSettings.DnsPrefetchEnabled` | ? | 指定QtWebKit的是否會嘗試預取的DNS條目,以加快瀏覽。這只能作為一個全球性的屬性。只為Qt 4.6和更高版本。這是默認情況下禁用。 | | `QWebSettings.JavascriptEnabled` | `1` | 啟用或禁用JavaScript程序的運行。這是默認啟用 | | `QWebSettings.JavaEnabled` | `2` | 啟用或禁用Java小程序。目前不支持Java小程序。 | | `QWebSettings.PluginsEnabled` | `3` | 啟用或禁用網頁中的插件(例如,使用NPAPI ) 。 Qt的插件有一個MIME類型,如“應用程序/ x - QT-插件”不受此設置。這是默認情況下禁用。 | | `QWebSettings.PrivateBrowsingEnabled` | `4` | 私人瀏覽功能可以防止從WebKit的記錄在歷史上訪問過的網頁和存儲網頁的圖標。這是默認情況下禁用。 | | `QWebSettings.JavascriptCanOpenWindows` | `5` | 指定的JavaScript程序是否可以打開新窗口。這是默認情況下禁用。 | | `QWebSettings.JavascriptCanCloseWindows` | ? | 指定的JavaScript程序是否可以關閉窗口。這是默認情況下禁用。 | | `QWebSettings.JavascriptCanAccessClipboard` | `6` | 指定的JavaScript程序是否可以讀取或寫入剪貼板。這是默認情況下禁用。 | | `QWebSettings.DeveloperExtrasEnabled` | `7` | 啟用額外的Web開發工具。目前,這使得在上下文菜單中的“檢查”元素,以及使用[QWebInspector](qwebinspector.html)它控制著Web檢查器對網站進行調試。這是默認情況下禁用。 | | `QWebSettings.SpatialNavigationEnabled` | ? | 啟用或禁用空間導航的功能,其中包括在通過左,右,上和下箭頭鍵在網頁中可聚焦元素,如超鏈接和窗體控件之間進行導航的能力。例如,如果用戶按下右鍵,啟發式判斷是否有他可能會試圖達成朝著正確的,哪些元素是他想的元素。這是默認情況下禁用。 | | `QWebSettings.LinksIncludedInFocusChain` | `8` | 指定的超鏈接是否應該包括在鍵盤焦點鏈。這是默認啟用的。 | | `QWebSettings.ZoomTextOnly` | `9` | 指定是否在框架上的變焦倍率僅適用于文本或全部內容。這是默認情況下禁用。 | | `QWebSettings.PrintElementBackgrounds` | `10` | 指定背景顏色和圖像是否也招來當頁面被打印。這是默認啟用的。 | | `QWebSettings.OfflineStorageDatabaseEnabled` | `11` | 指定了HTML 5的離線存儲功能的支持是否啟用與否。這是默認情況下禁用。 | | `QWebSettings.OfflineWebApplicationCacheEnabled` | `12` | 指定為HTML 5 Web應用程序的緩存功能的支持是否啟用與否。這是默認情況下禁用。 | | `QWebSettings.LocalStorageEnabled` | `13` | 指定了HTML 5的本地存儲功能支持是否啟用與否。這是默認情況下禁用。 (這個值被引入4.6 。 ) | | `QWebSettings.LocalStorageDatabaseEnabled` | `LocalStorageEnabled` | _This enum value is deprecated._使用QWebSettings.LocalStorageEnabled代替。 | | `QWebSettings.LocalContentCanAccessRemoteUrls` | ? | 指定本地加載的文件是否被允許訪問遠程URL 。這是默認情況下禁用。有關安全性的起源和本地與遠程內容查看詳細信息[QWebSecurityOrigin](qwebsecurityorigin.html)。 (這個值被引入4.6 。 ) | | `QWebSettings.LocalContentCanAccessFileUrls` | ? | 指定本地加載的文件是否被允許訪問其他地方的URL。這是默認啟用的。有關安全性的起源和本地與遠程內容查看詳細信息[QWebSecurityOrigin](qwebsecurityorigin.html)。 | | `QWebSettings.XSSAuditingEnabled` | ? | 指定是否負荷要求應為跨站點腳本嘗試進行監控。可疑的腳本將被阻止并報告在檢查的JavaScript控制臺。啟用此功能可能會對性能產生影響,它默認是禁用的。 | | `QWebSettings.AcceleratedCompositingEnabled` | ? | 這個特點,配合使用時[QGraphicsWebView](qgraphicswebview.html),加速Web內容的動畫。變換和不透明性質的CSS動畫將構成動畫元素的緩存內容進行渲染。這是默認啟用的。 | | `QWebSettings.TiledBackingStoreEnabled` | ? | 此設置使瓷磚后備存儲功能的[QGraphicsWebView](qgraphicswebview.html)。與平鋪的后備存儲使能,以及當前可見區域周圍的網頁內容被推測為緩存位圖的瓷磚。瓦片被自動保持同步的網頁,因為它改變。啟用平鋪可以顯著加快油畫般滾動沉重的作業。啟用該功能會增加內存消耗。使用CSS固定定位與內容,它不能很好地工作(參見[resizesToContents](qgraphicswebview.html#resizesToContents-prop)屬性)。[tiledBackingStoreFrozen](qgraphicswebview.html#tiledBackingStoreFrozen-prop)屬性允許應用程序暫時凍結后備存儲的內容。這是默認情況下禁用。 | | `QWebSettings.FrameFlatteningEnabled` | ? | 與此設置每個子幀被擴展為它的內容。在觸摸設備,它是理想的沒有頁面的任何可滾動的子部件,因為它會導致一個混亂的用戶體驗,帶滾動有時滾動的子部件,并在其他時間滾動頁面本身。出于這個原因,內置頁框和框架都在觸摸設備幾乎無法使用。這將壓扁的所有幀成為一體滾動頁面。這是默認情況下禁用。 | | `QWebSettings.SiteSpecificQuirksEnabled` | ? | 此設置使WebKit的解決方法打破的網站。它是默認啟用的。 | ``` QWebSettings.WebGraphic ``` 此枚舉描述網頁中使用的標準圖形元素。 | Constant | Value | Description | | --- | --- | --- | | `QWebSettings.MissingImageGraphic` | `0` | 所示的替換圖形圖像時無法加載。 | | `QWebSettings.MissingPluginGraphic` | `1` | 所示的替換圖形時,插件無法加載。 | | `QWebSettings.DefaultFrameIconGraphic` | `2` | 為默認圖標[QWebFrame.icon](qwebframe.html#icon-prop)( ) 。 | | `QWebSettings.TextAreaSizeGripCornerGraphic` | `3` | 用于顯示文本區域的大小手柄的圖形。 | | `QWebSettings.DeleteButtonGraphic` | `4` | 所示為WebKit的 - 編輯 - 刪除 - 按鈕在刪除用戶界面的圖形。 | | `QWebSettings.InputSpeechButtonGraphic` | `5` | 支持語音識別輸入字段中顯示的圖形。 | | `QWebSettings.SearchCancelButtonGraphic` | `6` | 為顯示在搜索字段中清除文本圖形。 | | `QWebSettings.SearchCancelButtonPressedGraphic` | `7` | 當SearchCancelButtonGraphic按下所示的圖形。 | * * * ## Method Documentation ``` QWebSettings.clearIconDatabase () ``` 清除圖標庫。 ``` QWebSettings.clearMemoryCaches () ``` 將釋放盡可能多的內存可以通過清理所有的內存高速緩存,如頁面,對象和字體緩存。 此功能被引入Qt的4.6 。 ``` QString QWebSettings.defaultTextEncoding (self) ``` 返回默認文本編碼。 此功能被引入Qt的4.6 。 **See also** [setDefaultTextEncoding](qwebsettings.html#setDefaultTextEncoding)( ) 。 ``` QWebSettings.enablePersistentStorage (QString?path?=?QString()) ``` 啟用WebKit的數據持久化,并設置為路徑_path_。如果_path_是空的,由指定的用戶特定數據的位置[DataLocation](qdesktopservices.html#StandardLocation-enum)將被代替使用。 此方法將同時設置并啟用[iconDatabasePath](qwebsettings.html#iconDatabasePath)( )[localStoragePath](qwebsettings.html#localStoragePath)( )[offlineStoragePath](qwebsettings.html#offlineStoragePath)()和[offlineWebApplicationCachePath](qwebsettings.html#offlineWebApplicationCachePath)( ) 。 此功能被引入Qt的4.6 。 **See also** [localStoragePath](qwebsettings.html#localStoragePath)( ) 。 ``` QString QWebSettings.fontFamily (self, FontFamily?which) ``` 返回實際的字體系列指定通用字體家族,_which_。 **See also** [setFontFamily](qwebsettings.html#setFontFamily)( ) 。 ``` int QWebSettings.fontSize (self, FontSize?type) ``` 返回默認的字體大小_type_。 **See also** [setFontSize](qwebsettings.html#setFontSize)( ) 。 ``` QWebSettings QWebSettings.globalSettings () ``` [ 返回全局設置對象。 ](qwebsettings.html) [改變默認的對象的任何設置將自動應用于所有](qwebsettings.html)[QWebPage](qwebpage.html)倘或特定的設置尚未復蓋。 ``` QString QWebSettings.iconDatabasePath () ``` 如果返回的圖標數據庫被禁用的圖標庫或空字符串的路徑。 **See also** [setIconDatabasePath](qwebsettings.html#setIconDatabasePath)()和[clearIconDatabase](qwebsettings.html#clearIconDatabase)( ) 。 ``` QIcon QWebSettings.iconForUrl (QUrl?url) ``` [ 返回該網站的圖標_url_。 ](qicon.html) [如果網站不指定圖標**OR**如果圖標是不是在數據庫中,空](qicon.html)[QIcon](qicon.html)返回。 **Note:**返回圖標的大小是任意的。 **See also** [setIconDatabasePath](qwebsettings.html#setIconDatabasePath)( ) 。 ``` QString QWebSettings.localStoragePath (self) ``` 返回HTML5的本地存儲路徑。 此功能被引入Qt的4.6 。 **See also** [setLocalStoragePath](qwebsettings.html#setLocalStoragePath)( ) 。 ``` int QWebSettings.maximumPagesInCache () ``` 返回的網頁被保存在內存中緩存的最大數量。 **See also** [setMaximumPagesInCache](qwebsettings.html#setMaximumPagesInCache)( ) 。 ``` int QWebSettings.offlineStorageDefaultQuota () ``` 返回默認配額為新的離線存儲數據庫中的值。 此功能被引入Qt的4.5 。 **See also** [setOfflineStorageDefaultQuota](qwebsettings.html#setOfflineStorageDefaultQuota)( ) 。 ``` QString QWebSettings.offlineStoragePath () ``` 返回的功能,如果禁用了HTML5的客戶端數據庫存儲或空字符串的路徑。 此功能被引入Qt的4.5 。 **See also** [setOfflineStoragePath](qwebsettings.html#setOfflineStoragePath)( ) 。 ``` QString QWebSettings.offlineWebApplicationCachePath () ``` 返回的功能,如果禁用了HTML5離線Web應用程序的緩存存儲或空字符串的路徑。 此功能被引入Qt的4.6 。 **See also** [setOfflineWebApplicationCachePath](qwebsettings.html#setOfflineWebApplicationCachePath)( ) 。 ``` int QWebSettings.offlineWebApplicationCacheQuota () ``` 返回配額的離線網絡應用程序緩存的值。 此功能被引入Qt的4.6 。 **See also** [setOfflineWebApplicationCacheQuota](qwebsettings.html#setOfflineWebApplicationCacheQuota)( ) 。 ``` QWebSettings.resetAttribute (self, WebAttribute?attr) ``` 復位的設置_attribute_在全球指定的值[QWebSettings](qwebsettings.html)實例。 此功能對全球無影響[QWebSettings](qwebsettings.html)實例。 **See also** [globalSettings](qwebsettings.html#globalSettings)( ) 。 ``` QWebSettings.resetFontFamily (self, FontFamily?which) ``` 通過復位指定的實際字體系列_which_到所述一個全局設置[QWebSettings](qwebsettings.html)實例。 此功能對全球無影響[QWebSettings](qwebsettings.html)實例。 ``` QWebSettings.resetFontSize (self, FontSize?type) ``` 復位時的字體大小_type_在指定的大小的全局設置對象。 此功能對全球無影響[QWebSettings](qwebsettings.html)實例。 ``` QWebSettings.setAttribute (self, WebAttribute?attr, bool?on) ``` 啟用或禁用指定_attribute_功能取決于價值_on_。 ``` QWebSettings.setDefaultTextEncoding (self, QString?encoding) ``` 指定默認的文字編碼系統。 該_encoding_,必須描述的編碼,如“ UTF-8”的字符串, “ISO-8859 -1”等,如果為空的默認值將被使用。對于更廣泛的編碼名稱的列表,請參閱[QTextCodec](qtextcodec.html) 此功能被引入Qt的4.6 。 **See also** [defaultTextEncoding](qwebsettings.html#defaultTextEncoding)( ) 。 ``` QWebSettings.setFontFamily (self, FontFamily?which, QString?family) ``` 將實際的字體家族_family_指定通用系列,_which_。 **See also** [fontFamily](qwebsettings.html#fontFamily)( ) 。 ``` QWebSettings.setFontSize (self, FontSize?type, int?size) ``` 設置字體大小_type_至_size_。 **See also** [fontSize](qwebsettings.html#fontSize)( ) 。 ``` QWebSettings.setIconDatabasePath (QString?location) ``` 設置的圖標數據庫的路徑_path_。圖標數據庫,用于存儲與網站相關聯的“收藏夾圖標” 。 _path_必須指向現有的目錄。 設置一個空的路徑禁用圖標庫。 **See also** [iconDatabasePath](qwebsettings.html#iconDatabasePath)()和[clearIconDatabase](qwebsettings.html#clearIconDatabase)( ) 。 ``` QWebSettings.setLocalStoragePath (self, QString?path) ``` 設置為HTML5的本地存儲路徑_path_。 有關HTML5的本地存儲更多的信息,請參閱[Web Storage standard](http://www.w3.org/TR/webstorage/#the-localstorage-attribute)。 支持本地存儲可以通過設置啟用[LocalStorageEnabled](qwebsettings.html#WebAttribute-enum)屬性。 此功能被引入Qt的4.6 。 **See also** [localStoragePath](qwebsettings.html#localStoragePath)( ) 。 ``` QWebSettings.setMaximumPagesInCache (int?pages) ``` 設置的最大頁數,以保持在內存中頁面緩存到_pages_。 頁面緩存使得導航時提出,或返回到前進/后退歷史記錄頁面,通過暫停和恢復到一個更好的用戶體驗_pages_。 有關該功能的更多信息,請參考: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ **See also** [maximumPagesInCache](qwebsettings.html#maximumPagesInCache)( ) 。 ``` QWebSettings.setObjectCacheCapacities (int?cacheMinDeadCapacity, int?cacheMaxDead, int?totalCapacity) ``` 指定容量的死對象,如樣式表或腳本的內存緩存。 該_cacheMinDeadCapacity_指定_minimum_字節死對象應該消耗在緩存處于壓力下的人數。 _cacheMaxDead_是_maximum_字節數是死對象要消耗當緩存**not**下壓力。 _totalCapacity_指定_maximum_該高速緩存應該消耗的字節數**overall**。 高速緩存是默認啟用的。調用setObjectCacheCapacities ( 0 , 0 , 0 )將禁用緩存。用一個非零調用它再次啟用它。 ``` QWebSettings.setOfflineStorageDefaultQuota (int?maximumSize) ``` 設置默認配額的價值,新的離線存儲數據庫_maximumSize_。 此功能被引入Qt的4.5 。 **See also** [offlineStorageDefaultQuota](qwebsettings.html#offlineStorageDefaultQuota)( ) 。 ``` QWebSettings.setOfflineStoragePath (QString?path) ``` Sets _path_作為保存位置HTML5的客戶端數據庫存儲數據。 _path_必須指向現有的目錄。 設置一個空的路徑禁用該功能。 支持客戶端的數據庫可以通過設置啟用[OfflineStorageDatabaseEnabled](qwebsettings.html#WebAttribute-enum)屬性。 此功能被引入Qt的4.5 。 **See also** [offlineStoragePath](qwebsettings.html#offlineStoragePath)( ) 。 ``` QWebSettings.setOfflineWebApplicationCachePath (QString?path) ``` 設置為HTML5離線Web應用程序的緩存存儲的路徑_path_。 一個應用程序的緩存就像在某些意義上的HTTP緩存。對于使用通過JavaScript的應用程序緩存文件,裝載機發動機將首先要求的內容的應用程序緩存,接觸網絡之前。 http://dev.w3.org/html5/spec/Overview.html # appcache :該功能在細節處描述 _path_必須指向現有的目錄。 設置一個空的路徑禁用該功能。 支持離線Web應用程序的緩存存儲可以通過設置啟用[OfflineWebApplicationCacheEnabled](qwebsettings.html#WebAttribute-enum)屬性。 此功能被引入Qt的4.6 。 **See also** [offlineWebApplicationCachePath](qwebsettings.html#offlineWebApplicationCachePath)( ) 。 ``` QWebSettings.setOfflineWebApplicationCacheQuota (int?maximumSize) ``` 設置配額的離線網絡應用程序緩存的值_maximumSize_。 此功能被引入Qt的4.6 。 **See also** [offlineWebApplicationCacheQuota](qwebsettings.html#offlineWebApplicationCacheQuota)( ) 。 ``` QWebSettings.setUserStyleSheetUrl (self, QUrl?location) ``` 指定用戶樣式表的位置來加載與每個網頁。 該_location_必須是在本地文件系統的路徑,或使用UTF-8和Base64編碼的數據,如數據的URL : “數據:文本/ CSS ;字符集= UTF -8;的base64 , cCB7IGJhY2tncm91bmQtY29sb3I6IHJlZCB9Ow ==” **Note:**如果base64的數據是無效的,該樣式將不會被應用。 **See also** [userStyleSheetUrl](qwebsettings.html#userStyleSheetUrl)( ) 。 ``` QWebSettings.setWebGraphic (WebGraphic?type, QPixmap?graphic) ``` Sets _graphic_要繪制時[QtWebKit](index.htm)需要借鑒的給定的圖像_type_。 例如,當圖像不能被加載,像素映像指定由[MissingImageGraphic](qwebsettings.html#WebGraphic-enum)繪制代替。 **See also** [webGraphic](qwebsettings.html#webGraphic)( ) 。 ``` bool QWebSettings.testAttribute (self, WebAttribute?attr) ``` 返回True如果_attribute_被啟用,否則返回False 。 ``` QUrl QWebSettings.userStyleSheetUrl (self) ``` [ 返回用戶樣式表的位置。 ](qurl.html) [**See also**](qurl.html) [setUserStyleSheetUrl](qwebsettings.html#setUserStyleSheetUrl)( ) 。 ``` QPixmap QWebSettings.webGraphic (WebGraphic?type) ``` [ 返回用來繪制指定的圖形置換預先設定的像素圖_type_。 ](qpixmap.html) [**See also**](qpixmap.html) [setWebGraphic](qwebsettings.html#setWebGraphic)( ) 。
                  <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>

                              哎呀哎呀视频在线观看