
Qt
文章平均质量分 67
妙为
一念归零
展开
-
IntelliSense 已完成初始化,但在尝试加载文档时出错
IntelliSense 已完成初始化,但在尝试加载文档时出错File path: E:\QtExercise\DigitalPlatform\DigitalPlatform\main\propertyWin.uiFrame GUID:96fe523d-6182-49f5-8992-3bea5f7e6ff6Frame mode:VSFM_MdiChildError code: 0x80041FEB原创 2025-04-18 15:09:32 · 756 阅读 · 0 评论 -
visual studio 2022更改项目名称,灾难性故障(异常来自HRESULT)
visual studio 2022更改项目名称,灾难性故障(异常来自HRESULT)原创 2025-04-17 16:29:05 · 1463 阅读 · 0 评论 -
无法打开包括文件: “QGLWidget”: No such file or directory
无法打开包括文件: “QGLWidget”: No such file or directory。原创 2025-04-14 16:24:05 · 418 阅读 · 0 评论 -
“Common::PluginInterface”: 无法实例化抽象类
“Common::PluginInterface”: 无法实例化抽象类抽象类不能实例化:PluginInterface包含纯虚函数initialize和unload,因此是抽象类,不能直接实例化。Q_PLUGIN_METADATA宏问题:Q_PLUGIN_METADATA只能用于具体类(可以实例化的类),而不能用于抽象类。moc工具会尝试实例化Q_PLUGIN_METADATA中引用的类,这就导致了该错误。原创 2025-04-09 14:47:12 · 377 阅读 · 0 评论 -
“QMetaObject::Connection QObject::connectImpl(const QObject *,void **,const QObject *,void **,QtPriv
“QMetaObject::Connection QObject::connectImpl(const QObject *,void **,const QObject *,void **,QtPrivate::QSlotObjectBase *,Qt::ConnectionType,const int *,const QMetaObject *)”: 无法将参数 3 从“const Common::TcpServer *”转换为“const QObject *”原创 2025-04-09 14:38:56 · 1051 阅读 · 0 评论 -
找不到导入的项目“xxx\QtMsBuild\Qt.props”。请确认 Import 声明“$(QtMsBuild)\Qt.props”中计算结果为
找不到导入的项目“E:\osgEarth\DigitalSimulationPlatform\DigitalSimulationPlatform\QtMsBuild\Qt.props”。请确认 Import 声明“$(QtMsBuild)\Qt.props”中计算结果为“E:\osgEarth\DigitalSimulationPlatform\DigitalSimulationPlatform\QtMsBuild\Qt.props”的表达式正确无误且该文件位于磁盘上。原创 2025-04-07 14:24:22 · 964 阅读 · 0 评论 -
QtCreator无法调试
关于QtCreator无法使用cdb调试的问题错误含义这个问题涉及到QtCreator中无法使用cdb(Microsoft’s Console Debugger)进行调试。通常出现这种问题的原因可能有以下几种:cdb未正确安装或未配置路径。QtCreator未正确配置使用cdb作为调试器。项目设置或环境变量配置错误。解决方案确认cdb是否正确安装确保Visual Studio已经安装了调试工具包,包括cdb。你可以通过以下步骤确认:打开Visual Studio安装程序。原创 2025-04-02 15:25:47 · 609 阅读 · 0 评论 -
MainWindow.h:5:10: In included file: static assertion failed: error STL1000: Unexpected compiler ver
在QtCreator5.15.2新建的工程,报警告如下:MainWindow.h:5:10: In included file: static assertion failed: error STL1000: Unexpected compiler ver错误含义错误提示“static assertion failed: error STL1000: Unexpected compiler version, expected Clang 18.0.0 or newer”意味着编译器版本不满足要求。具体原创 2025-04-02 14:55:00 · 957 阅读 · 0 评论 -
无法打开包括文件: “QGLWidget”: No such file or directory
无法打开包括文件: “QGLWidget”: No such file or directory原创 2025-03-10 15:25:46 · 246 阅读 · 0 评论 -
CMake Error at XXXCMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake whe
严重性 代码 说明 项目 文件 行 禁止显示状态错误 CMake Error at E:\exercise\qtExercise\painterSelf\CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cach原创 2024-01-27 09:51:50 · 1658 阅读 · 0 评论 -
Qt5.15.2中加入图片资源
以前用的Qt5.15.2之前的版本,QtCreator默认的工程文件是*.pro,现在用5.15.2创建工程默认的工程文件是CMameList.txt,当然在创建项目时,仍然可以使用pro工程文件用QtCreator打开CMakeList.txt以前用习惯了pro文件,现在改成CMakeList很不习惯,现在我们在CMakeList.txt中加入资源文件。原创 2024-01-20 21:58:33 · 2748 阅读 · 0 评论 -
在Qt中使用LoadLibrary无法加载DLL
在Qt中使用LoadLibrary无法加载DLL原创 2023-08-11 16:40:09 · 2607 阅读 · 0 评论 -
QtCreator5.15.2新建工程没有pro文件
QtCreator5.15.2新建工程没有pro文件原创 2023-08-08 14:31:19 · 2914 阅读 · 0 评论 -
Qt中使用QXmlStreamReader读取xml文件中遇到的问题
if(!while(!break;上面是第一段是xml文本,第二段是读取xml文件内容的代码简介, 对于 XML 的内容,通常情况下,我们只关心 XML 元素的解析。这时,可以通过 QXmlStreamReader 中的便利函数 readNextStartElement() 来实现。简述 详细介绍 使用 更多参考 详细介绍 之前使用的方式主要使用 readNext() 来读取下一个标记,并返回对应的类型。//获取XML编码,如果XML声明中未指定,则返回NULL。原创 2023-06-29 12:22:52 · 1233 阅读 · 1 评论 -
Qt中QVector 、QList、QSet、QMap比较
QVector、QList、QSet、QMap 和 QQueue 是 Qt 框架中常用的容器类,它们在存储和组织数据上有一些区别。原创 2023-06-16 13:03:08 · 3742 阅读 · 0 评论 -
Qt下面窗口嵌套,嵌套窗口中包含:QGraphicsView、QGraphicsScene、QGraphicsIte
Qt下面窗口嵌套,嵌套窗口中包含:QGraphicsView、QGraphicsScene、QGraphicsIte原创 2023-06-13 22:56:13 · 3749 阅读 · 1 评论 -
QT 中使用QFile如何识别txt文件的编码格式:utf-8 ANSI
QT 中使用QFile如何识别txt文件的编码格式:utf-8 ANSI原创 2023-06-09 10:27:57 · 3350 阅读 · 4 评论 -
Qt中QFile类读取ansi编码格式txt文件,在QTextEdit控件中显示乱码
Qt中QFile类读取ansi编码格式txt文件,在QTextEdit控件中显示乱码原创 2023-06-08 15:56:32 · 2724 阅读 · 0 评论 -
在visual studio 2019调试模式下查看QTreeWidget、QTreeWidgetItem类型的变量的值
使用visual studio2019调试代码时,遇到QTreeWidget、QTreeWidgetItem类型的变量,如何查看节点和子节点的值呢,我在visual studio2019调试代码时,监视窗口显示如下:上图中cameraNode是一个QTreeWidgetItem类型的变量,我知道能看到这个cameraNode节点有三个子节点,但我不能看到她的子节点的名称等属性。于是我视图添加新的监视变量:cameraNode->text(0) 代表cameraNode的第一个子节点。原创 2023-05-30 15:20:43 · 646 阅读 · 0 评论 -
.vcxproj : error : 文件 E:\work\ImageManageSys\images\boat.png 包含在 None 和 None 项组中。项目项不允许这样做,它只能属于一个项
我使用visual studio 2019 打开QtCreator5,15,2创建的项目ImageManageSys,编译器拨错:ImageManageSys.vcxproj : error : 文件 E:\work\ImageManageSys\images\boat.png 包含在 None 和 None 项组中。项目项不允许这样做,它只能属于一个项组。原创 2023-05-30 10:15:03 · 588 阅读 · 0 评论 -
Qt中QSplitter使QWidget改变屏占比
Qt中QSplitter使QWidget改变屏占比原创 2023-05-19 10:44:11 · 1979 阅读 · 0 评论 -
error: LNK2001: 无法解析的外部符号 “public: virtual struct QMetaObject const * __cdecl
error: LNK2001: 无法解析的外部符号 "public: virtual struct QMetaObject const * __cdecl原创 2023-05-12 22:15:40 · 1361 阅读 · 0 评论 -
Qt使用QVBoxLayout布局器失效
Qt使用QVBoxLayout布局器失效原创 2023-05-11 17:10:22 · 1508 阅读 · 0 评论 -
系统错误 无法启动此程序,因为计算机中丢失MSVCP140_1.dll。尝试重新安装该程序已解决此问题
我在windows10系统,使用Qt5.15.2 打包命令:windeployqt.exe ImageManageSys.exe ,把ImageManageSys.exe 拷贝到windows7系统下,报错:ImageManageSys.exe - 系统错误 无法启动此程序,因为计算机中丢失MSVCP140_1.dll。尝试重新安装该程序已解决此问题。原创 2023-04-26 22:14:07 · 2183 阅读 · 0 评论 -
Project file already exist. ImageManageSys.vcxproj already exists.Select ‘OK‘ to regenerate the file
我已经安装了Qt visual studio tools插件,当我用visual studio 2019 导入Qt工程中的ImageManageSys.pro文件时,遇到提示: Project file already exist. ImageManageSys.vcxproj already exists.Select ‘OK’ to regenerate the file or ‘Cancel’ to quit importing the project.原创 2023-04-26 14:44:54 · 511 阅读 · 0 评论 -
c++STL标准库排序函数std::sort使用
else {在使用c++STL标准库排序函数std::sort编译器报错:1.E:\work\ImageManageSys\MainFramework.cpp:586: error: C3867: “MainFramework::sortStrips”: 非标准语法;请使用 “&” 来创建指向成员的指针。原创 2023-04-26 10:33:16 · 2565 阅读 · 0 评论 -
ProjectWin.obj:-1: error: LNK2001: 无法解析的外部符号 “private: static class ProjectWin * ProjectWin::m_pInst
今天写了一个单例模式,报错如下ProjectWin.obj👎 error: LNK2001: 无法解析的外部符号 “private: static class ProjectWin * ProjectWin::m_pInstance” (?debug\ImageManageSys.exe👎 error: LNK1120: 1 个无法解析的外部命令例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。原创 2023-04-24 15:09:25 · 414 阅读 · 0 评论 -
windows下安装emscripten
由于Web端需要处理大量图像,大量图片的分辨率8k*8k,使用Canvas API(画布)是在HTML5中新增的标签用于在网页实时生成图像,并且可以操作图像内容,基本上它是一个可以用JavaScript操作的位图(bitmap)。当加载到10张以上的图片时,在Canvas上放大到3倍以上时,不管CPU、GPU如何强悍,但是性能依然达不到要求。只好使用Qt C++中的Graphics来处理,这要就涉及到Web JavaScript调用Qt,就需要用到Emscripten SDK(emsdk)。原创 2023-04-23 11:31:45 · 2484 阅读 · 2 评论 -
QTreeWidget中MainWindow窗体中布局器不起作用
QTreeWidget中MainWindow窗体中布局器不起作用原创 2023-04-17 20:00:12 · 378 阅读 · 0 评论 -
QT5.15.2 在线安装下载速度慢的解决办法
QT5.15.2 在线安装下载速度慢的解决办法原创 2023-04-11 18:42:53 · 6626 阅读 · 8 评论 -
krita windows编译源码
krita windows编译源码原创 2023-04-04 15:39:45 · 1880 阅读 · 2 评论 -
Qt5.15.2 for WebAssembly 环境搭建 - Windows篇
Qt5.15.2 for WebAssembly 环境搭建 - Windows篇原创 2023-04-03 10:22:27 · 1708 阅读 · 2 评论 -
QT中QDockWidget使用详解
QT中QDockWidget使用详解,QListWidget加入多张图片原创 2023-03-31 15:53:46 · 11119 阅读 · 6 评论 -
windows10安装Qt5.15.2
windows10安装Qt5.15.2原创 2023-03-30 21:40:40 · 2384 阅读 · 0 评论 -
There‘s no Qt version assigned to project QDockWidgetDemo.vcxproj for configuration Release/x64.
There's no Qt version assigned to project QDockWidgetDemo.vcxproj for configuration Release/x64.原创 2023-03-24 17:03:54 · 1418 阅读 · 1 评论 -
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1060 编译器的堆空间不足
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1060 编译器的堆空间不足原创 2023-03-21 20:47:27 · 4163 阅读 · 0 评论 -
Error:Could not decode “ImageWidget.cpp“ with “UTF-8“-encoding.Editing not possible
Error:Could not decode "ImageWidget.cpp" with "UTF-8"-encoding.Editing not possible我们先选择GBK等(选什么不重要)编码,点击按编码重新载入,这样文件就可以编辑了菜单栏点Edit(编辑)->Select Encoding,选择UTF-8,或者你想转换的编码,按编码保存即可,这样下一次提示就不出现了原创 2023-03-21 17:26:43 · 855 阅读 · 0 评论 -
error: C1083: 无法打开包括文件: “QtGui/QApplication”: No such file or directory
error: C1083: 无法打开包括文件: “QMainWindow”: No such file or directory error: C1083: 无法打开包括文件: “QGraphicsItem”: No such file or directory error: C1083: 无法打开包括文件: “QGraphicsView”: No such file or directory error: 'QApplication' file not found error: C1083: 无原创 2023-03-21 14:05:49 · 7409 阅读 · 0 评论 -
link with a qt installation to automatically register qt versions and lits?to do this later,select o
link with a qt installation to automatically register qt versions and lits?to do this later,select options > Kits > Qt Versions > Link with QtAdding Qt VersionsYou can install multiple versions of Qt development PC and use them to build your projects. For原创 2023-03-21 10:13:59 · 2004 阅读 · 1 评论 -
Qt中QListWidget/QListWidgetItem详解
Qt中QListWidget/QListWidgetItem详解原创 2023-03-20 21:23:12 · 8953 阅读 · 0 评论