It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




9年前关闭。




当我使用QDomDocument时,它显示QDomDocument不是atype ....然后我添加#include ...然后它还显示错误,因为没有这样的 namespace .... y它发生了...。

最佳答案

QDomDocument属于QtXml module

要链接该模块,请将以下行添加到qmake .pro文件中:

QT += xml

07-24 19:51