如何在MS Visual Studio 2019中运行QT UI
How to run QT UI in MS Visual Studio 2019
我在QT创建者中创建了我的UI,它在C++代码中,
现在我想把它连接到我的后端(C++(,它在Visual Studio 2019中,但Visual Studio没有检测到这些头文件
#include <QMainWindow>
#include<QFile>
#include<QFileDialog>
#include<QTextStream>
#include<QMessageBox>
#include<QtPrintSupport/QPrintDialog>
#include<QtPrintSupport/QPrinter
它在#include下给出了一条红线,我想它没有检测到什么,我必须安装一些东西,但我到底该怎么做,我从来没有使用过Visual Studio???
运行qmake -tp vc
。这将生成一个visualstudio项目文件,用于构建qt应用程序。qmake可以在qt-install 的bin目录中找到
drescherjm已经提到了如何向visualstudio添加库。
您需要找到Qt头文件和Qt dll lib的目录,该目录安装在C:\path\to\Qtxxx\lib和C:\path\to_Qtxxx\include下。
相关文章:
- 如何在MS Visual Studio 2019中运行QT UI
- 在 Ubuntu 服务器上运行 QT 应用程序时崩溃
- 运行Qt时处理退出代码0xC0000135 hello world
- 如何在 qt 中从另一个线程运行 qt并发时关闭程序
- qt.bluetooth:虚拟后端正在运行.Qt蓝牙模块在Raspbian上不起作用
- 在Raspbian lite上运行Qt Quick(EGLFS)
- 将QProcess窗口带到前面(运行QT助手)
- 必须在客户端计算机上安装的内容才能运行QT快速应用程序
- 无法运行Qt C++发布版本。 'The procedure entry point could not be located'
- 运行Qt 5.10事件循环howto的Windows服务service_WIN32_OWN_PROCESS
- 通过远程桌面运行 qt 创建器
- 通过php(LINUX)运行Qt生成的可执行文件(EXE)
- 从WIndows中的命令提示符运行QT应用程序
- 无法在Windows中运行Qt应用程序
- 我尝试在linuxLite上使用qt-creator运行qt-vtk项目
- 在Linux(Ubuntu 13.10和14.04)下运行Qt C++代码,而无需QtCoreApplication/Q
- 运行QT Creator时OpenGL出现问题
- 在没有IDE的情况下运行Qt程序
- 在while循环中运行Qt程序
- 如何在GPU上而不是在CPU上运行qt应用程序