基于Qt WebChannel实现QT与HTML页面通信

上传者: liuyez123 | 上传时间: 2019-12-21 18:51:24 | 文件大小: 747KB | 文件类型: rar
最近,C++和WEB本地混合应用开发模式逐渐流行起来,个人也认为标记语言描述的界面是界面开发的一个发展趋势。WPF、Java FX,当然也少不了Html。基于Html的界面在开发效率,可移植性上都十分有优势,所以也被很多程序采用 随着HTML5技术风生水起,Qt开发团队用近一年的时间开发了一个全新的基于Chromium的浏览器引擎Qt WebEngine,以支持面向未来的Hybrid应用开发,并完全支持桌面和嵌入式平台。 本例实现基于Qt WebChannel 的QT与HTML页面通信

文件下载

资源详情

[{"title":"( 33 个子文件 747KB ) 基于Qt WebChannel实现QT与HTML页面通信","children":[{"title":"webchanneltest","children":[{"title":"document.h <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"htmlpage.cpp <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'> 77.06KB </span>","children":null,"spread":false},{"title":"webchanneltest.qrc <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"mainwidget.cpp <span style='color:#111;'> 891B </span>","children":null,"spread":false},{"title":"previewpage.h <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"mainwidget.h <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"previewpage.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"webchanneltest.pro <span style='color:#111;'> 530B </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 77.09KB </span>","children":null,"spread":false},{"title":"ui_mainwidget.h <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"mainwidget.ui <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"webchanneltest.pro.user <span style='color:#111;'> 22.87KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"webchanneltest.exe <span style='color:#111;'> 136.50KB </span>","children":null,"spread":false},{"title":"webchanneltest.pdb <span style='color:#111;'> 3.04MB </span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'> 23.92KB </span>","children":null,"spread":false},{"title":"qwebchannel.js <span style='color:#111;'> 14.49KB </span>","children":null,"spread":false},{"title":"document.cpp <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"release","children":[{"title":"moc_previewpage.obj <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"moc_mainwidget.cpp <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"webchanneltest.exe <span style='color:#111;'> 58.00KB </span>","children":null,"spread":false},{"title":"document.obj <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"previewpage.obj <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"moc_mainwidget.obj <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"qrc_webchanneltest.obj <span style='color:#111;'> 11.35KB </span>","children":null,"spread":false},{"title":"moc_previewpage.cpp <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"qrc_webchanneltest.cpp <span style='color:#111;'> 33.17KB </span>","children":null,"spread":false},{"title":"moc_document.obj <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"moc_document.cpp <span style='color:#111;'> 5.96KB </span>","children":null,"spread":false},{"title":"mainwidget.obj <span style='color:#111;'> 92.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

  • hooray113 :
    还行,借鉴一下
    2021-01-27
  • Andriana :
    就是Qt自带的demo,浪费一次机会!
    2020-10-09
  • MrBai_2511 :
    还可以 跟qt自带的差不多
    2020-06-02
  • JasonStepan :
    可以用,不错,补了一些空白知识
    2020-02-14
  • traceme2011 :
    可以用,我用这个应付了领导的差事
    2019-11-11

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明