当前位置:网站首页>QT reading XML files using qdomdocument
QT reading XML files using qdomdocument
2022-06-23 07:46:00 【Miaowei】
Qt List of articles
List of articles
Preface
MainWindow.obj error: LNK2019: Unresolved external symbols “__declspec(dllimport) public: __cdecl QDomDocument::QDomDocument(class QString const &)” (_imp[email protected]@[email protected]@@@Z), The sign is in the function “public: void __cdecl MainWindow::openXML(class QString)” ([email protected]@@[email protected]@@Z) Cited in
MainWindow.obj error: LNK2019: Unresolved external symbols “__declspec(dllimport) public: __cdecl QDomDocument::~QDomDocument(void)” (_imp[email protected]@[email protected]), The sign is in the function “public: void __cdecl MainWindow::openXML(class QString)” ([email protected]@@[email protected]@@Z) Cited in 
One 、 The reason for the error
Despite the various dom The header file is still useless
#include <QMainWindow>
#include <QtXml/QDomDocument>
#include <QtXml/QDomComment>
#include <QtXml/QDomElement>
#include <QTreeWidgetItem>
Two 、 terms of settlement
QT += core gui
QT += xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
MainWindow.cpp
HEADERS += \
MainWindow.h
FORMS += \
MainWindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${
TARGET}/bin
else: unix:!android: target.path = /opt/$${
TARGET}/bin
!isEmpty(target.path): INSTALLS += target


边栏推荐
- Product axure9 (English version), prototype design background dynamic secondary menu display content
- The original cloud landed in deep water, and the cloud product family of Boyun container released four values
- 《一周的朋友》
- JS to determine the added and decreased elements of two arrays
- 链游飞船开发 农民世界链游开发 土地链游开发
- Unity to wechat applet games
- Guava cache usage summary
- MySQL慢查询记录
- 【Veusz】导入CSV中的二维数据
- 干货来了|《PaaS》合辑抢先看~
猜你喜欢

在kubernetes中部署kubersphere

MIT CMS.300 Session 12 – IDENTITY CONSTRUCTION 虚拟世界中身份认同的建立 part 2
![[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?](/img/ee/ce9f55694b28c391eb07cb11298caf.jpg)
[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?

vs在连接SQL时出现的问题myconn.OPen();无法运行

CIRIUM(睿思誉)逐渐成为航空公司二氧化碳排放报告的标准

Qt工程报错:-1: error: Cannot run compiler ‘clang++‘. Output:mingw32-make.exe

The sandbox has reached a cooperation with football player to bring popular football cartoons and animation into the metauniverse

3DMAX plug-in development environment configuration and fileexport and utilities template testing

基于51单片机的温度检测监测报警系统设计

论文写作之WPS安装Mathtype插件编写数学公式
随机推荐
Judge black production based on CDN and client slow log characteristics
职场必备的30套报表模板,满足95%的报表需求,一键套用无需代码
【星球精选】如何高效构建 Roam 与 theBrain 间细粒度双向链接?
C WPF additional attribute implementation interface defines decorator
论文写作之WPS安装Mathtype插件编写数学公式
Focusing on the industry, enabling customers | release of solutions for the five industries of the cloud container cloud product family
User mode and kernel mode
聊聊服务治理中的路由设计
MySQL (11) - sorting out MySQL interview questions
Intelligence Education - how to merge codes when code conflicts occur in multi person collaborative development?
Chain tour airship development farmers' world chain tour development land chain tour development
Quick sort + bubble sort + insert sort + select sort
Download the OSS file and modify the file name
. H5 file forgets the database name and uses h5py to print
链游飞船开发 农民世界链游开发 土地链游开发
MySQL系统表介绍
利用for循环输出一个字母三角形
Unity picture loading and saving
NFS special attention to permissions
Guava Cache 使用小结