qmake

rcc: File does not exist

天涯浪子 提交于 2021-01-28 05:05:03
问题 i am using a custom version of QLed for my project. Actually it worked fine when i first included the files in my project. Somehow i end up with this weird error from rcc now. The .svg files are shown when executing the UI. This is my project's folder: |-- _UI_Projects | |-- XmlReader | | |-- include | | | |-- ... | | |-- resources | | | |-- circle_black.svg | | | |-- circle_blue.svg | | | |-- circle_green.svg | | | |-- ... | | |-- src | | | |-- ... | | |-- qled.qrc | | `-- xml_reader.pro and

rcc: File does not exist

自古美人都是妖i 提交于 2021-01-28 05:03:14
问题 i am using a custom version of QLed for my project. Actually it worked fine when i first included the files in my project. Somehow i end up with this weird error from rcc now. The .svg files are shown when executing the UI. This is my project's folder: |-- _UI_Projects | |-- XmlReader | | |-- include | | | |-- ... | | |-- resources | | | |-- circle_black.svg | | | |-- circle_blue.svg | | | |-- circle_green.svg | | | |-- ... | | |-- src | | | |-- ... | | |-- qled.qrc | | `-- xml_reader.pro and

Qt教程 笔记1

柔情痞子 提交于 2021-01-08 10:53:09
Qt教程 ( http://c.biancheng.net/qt/ ) 安装QT 配置环境变量 右键[我的电脑]/[属性]/[高级系统设置]/[高级]/[环境变量]/[系统变量]/选[Path]/[编辑] 添加如下内容 C:\Qt\Qt5.9.8\5.9.8\mingw53_32\bin; C:\Qt\Qt5.9.8\5.9.8\msvc2013_64; 工程 路径不能包含中文 ,否则如下错误提示 Cannot find file: E:\Users\Administrator\Qt_Project\ Qt5 范例开发大全 \QtWindowsTest\QtWindowsTest.pro. 18:01:13: 进程"C:\Qt\Qt5.9.8\5.9.8\msvc2013_64\bin\qmake.exe"退出,退出代码 2 。 Error while building/deploying project QtWindowsTest (kit: Desktop Qt 5.9.8 MSVC2013 64bit) The kit Desktop Qt 5.9.8 MSVC2013 64bit has configuration issues which might be the root cause for this problem. When executing step

How to install Qt Serialport on macOS?

主宰稳场 提交于 2021-01-07 12:57:22
问题 I'm trying to compile this code where the .pro file includes a QT += serialport gives me a Project MESSAGE: Warning: unknown QT: serialport error. Without Qt, I would use CMake and install the package via vcpkg, Conan, HomeBrew, or something like that. But not sure if Qt has its own package manager. I would appreciate it if you could help me know what is the most canonical way to install and include this library. P.S.1. In the comments, I'm being told that I need to use Qt's Maintenance Tool,

How to install Qt Serialport on macOS?

a 夏天 提交于 2021-01-07 12:53:19
问题 I'm trying to compile this code where the .pro file includes a QT += serialport gives me a Project MESSAGE: Warning: unknown QT: serialport error. Without Qt, I would use CMake and install the package via vcpkg, Conan, HomeBrew, or something like that. But not sure if Qt has its own package manager. I would appreciate it if you could help me know what is the most canonical way to install and include this library. P.S.1. In the comments, I'm being told that I need to use Qt's Maintenance Tool,

QMake analog of cmake's “find_package”

只愿长相守 提交于 2021-01-02 06:41:27
问题 Is there are any mechanism in qmake like cmake's find_package ? If I need to include library installed on my system, how can I avoid to write include path and library names manually? What is the best practice? 回答1: If the used library provides pkgconfig .pc file, you can use link_pkgconfig in your .pro file as: CONFIG += link_pkgconfig PKGCONFIG += quazip If the library provides a command line utility to get the compiler flags (like postgresql does), then you can call it and assign add output

QMake analog of cmake's “find_package”

孤街醉人 提交于 2021-01-02 06:39:22
问题 Is there are any mechanism in qmake like cmake's find_package ? If I need to include library installed on my system, how can I avoid to write include path and library names manually? What is the best practice? 回答1: If the used library provides pkgconfig .pc file, you can use link_pkgconfig in your .pro file as: CONFIG += link_pkgconfig PKGCONFIG += quazip If the library provides a command line utility to get the compiler flags (like postgresql does), then you can call it and assign add output

QT Creator 转VS2017+QT工程

拟墨画扇 提交于 2020-12-16 06:59:07
因为刚学QT 不熟悉其QT Creator 的开发环境,所以打算用VS2017来开发,因为要跨平台所以打算写出来的代码可以放在linux上编译。 这时就需要将VS2017的工程转换成QT Creator 可以编译的工程 由于对.pro不熟悉,导出以后一通配置,就是不能在QT Creator中编译通过。 所以换了一种方式来实现 1.环境变量设置 PATH添加 qmake.exe的位置 C:\Qt\Qt5.11.2\5.11.2\msvc2017_64\bin PATH添加 64位cl.exe的位置 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\ 2.进入工程目录 带有.pro的文件夹下 打开CMD执行 qmake.exe -tp vc D:\QT\qttest\qttest.pro qmake.exe -t vcapp D:\QT\qttest\qttest.pro qmake.exe -r -tp vc D:\QT\qttest\qttest.pro 生成vcxproj 上面几个命令都试了下,没看出啥差别。 3.然后这个工程就可以同时在VS2017 和 QT Creator 中编译了。 ==================