Obsolete Members for QDomDocument

以下成員源於類 QDomDocument 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) bool setContent (QXmlInputSource * source , bool namespaceProcessing , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)
(obsolete) bool setContent (QIODevice * dev , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)
(obsolete) bool setContent (QXmlInputSource * source , QXmlReader * reader , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)

成員函數文檔編製

bool QDomDocument:: setContent ( QXmlInputSource * source , bool namespaceProcessing , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

此函數讀取 XML 文檔從 QXmlInputSource source ,返迴 true 若內容被成功剖析;否則返迴 false .

該函數在 Qt 4.5 引入。

bool QDomDocument:: setContent ( QIODevice * dev , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

此函數讀取 XML 文檔從 IO 設備 dev ,返迴 true 若內容被成功剖析;否則返迴 false .

不履行名稱空間處理。

bool QDomDocument:: setContent ( QXmlInputSource * source , QXmlReader * reader , QString * errorMsg = nullptr, int * errorLine = nullptr, int * errorColumn = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

這是重載函數。

此函數讀取 XML 文檔從 QXmlInputSource source 並剖析它采用 QXmlReader reader ,返迴 true 若內容被成功剖析;否則返迴 false .

此函數不改變特徵對於 reader 。若想要使用某些剖析特徵,可以使用此函數來設置適當讀取器。

另請參閱 QXmlSimpleReader .