Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mahuifa
QMDemo
提交
4aa8b92f
Q
QMDemo
项目概览
mahuifa
/
QMDemo
通知
1
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
QMDemo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4aa8b92f
编写于
2月 07, 2023
作者:
mahuifa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:修改qmake自动安装依赖功能
1、每次qmake时判断依赖文件是否存在,如果存在则不安装,避免每次重复安装耗费时间。
上级
5dc5f7d4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
Web/CefExamples/LoadWeb/LoadWeb.pro
Web/CefExamples/LoadWeb/LoadWeb.pro
+3
-2
Web/CefExamples/LoadWeb/main.cpp
Web/CefExamples/LoadWeb/main.cpp
+1
-1
未找到文件。
Web/CefExamples/LoadWeb/LoadWeb.pro
浏览文件 @
4aa8b92f
...
...
@@ -76,8 +76,9 @@ webFile.files = $$PWD/hello.html
# msvc需要配置【Custom Process Step: nmake install】或者【Custom Process Step: D:\Qt\Qt5.12.5\Tools\QtCreator\bin\jom.exe install】才生效,或者自己手动拷贝
# Debug和Release需要分别配置
INSTALLS += webFile # 将hello.html拷贝到path路径下
INSTALLS += cefDLL # 将CEF库文件拷贝到path路径下
# 执行之前先qmake,如果不想每次手动qmake,可以点击【工具】->【选项】->【构建和运行】->【qmake】->勾选【Run qmake every build】
!exists($$webFile.path/hello.html): INSTALLS += webFile # 将hello.html拷贝到path路径下
!exists($$cefDLL.path/QCefView.dll): INSTALLS += cefDLL # 将CEF库文件拷贝到path路径下
# msvc >= 2017 编译器使用utf-8编码
msvc {
...
...
Web/CefExamples/LoadWeb/main.cpp
浏览文件 @
4aa8b92f
...
...
@@ -5,7 +5,6 @@
void
initCefConfig
(
QCefConfig
&
config
)
{
// QCefConfig config;
config
.
setUserAgent
(
"QCefViewTest"
);
// 设置用户代理
config
.
setLogLevel
(
QCefConfig
::
LOGSEVERITY_DEFAULT
);
// 设置日志级别
config
.
setBridgeObjectName
(
"CallBridge"
);
// 设置网桥对象名称
...
...
@@ -92,6 +91,7 @@ int main(int argc, char *argv[])
QCefConfig
config
;
initCefConfig
(
config
);
QCefContext
cefContext
(
&
a
,
argc
,
argv
,
&
config
);
// 获取可执行程序所在的路径,然后添加 bin 目录到库的搜索路径中
Widget
w
;
w
.
show
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录