qml_And_Cplusplus.zip

上传者: 35241071 | 上传时间: 2022-10-23 14:46:29 | 文件大小: 4.77MB | 文件类型: ZIP
内含4个小例子,亲测有效,关于c++与qml混合编程相关的。没积分的私聊发你 《context》工程说明了:在C++中实例化并设置为QML上下文属性,在QML中直接使用。 《register》工程说明了:在Qt元对象系统中注册C++类,在QML中实例化、访问。 《qml_singleton》工程说明了:qml组件注册单例的两种方法 《cplusplus_Visit_Qml》工程说明了:c++读写qml属性、连接qml信号

文件下载

资源详情

[{"title":"( 88 个子文件 4.77MB ) qml_And_Cplusplus.zip","children":[{"title":"qml_And_Cplusplus","children":[{"title":"register","children":[{"title":"bin","children":[{"title":"Makefile.Debug <span style='color:#111;'> 31.16KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 31.19KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"moc_myTest.obj <span style='color:#111;'> 59.42KB </span>","children":null,"spread":false},{"title":"qrc_qml.cpp <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"register.pdb <span style='color:#111;'> 3.19MB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 146.64KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"qrc_qml.obj <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"myTest.obj <span style='color:#111;'> 56.49KB </span>","children":null,"spread":false},{"title":"register.ilk <span style='color:#111;'> 441.41KB </span>","children":null,"spread":false},{"title":"register.vc.pdb <span style='color:#111;'> 1.07MB </span>","children":null,"spread":false},{"title":"moc_myTest.cpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"register.exe <span style='color:#111;'> 61.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'> 26.59KB </span>","children":null,"spread":false},{"title":"release","children":null,"spread":false}],"spread":true},{"title":"register.pro <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"myTest.h <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"myTest.cpp <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"register.pro.user <span style='color:#111;'> 23.36KB </span>","children":null,"spread":false},{"title":"qml.qrc <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"main.qml <span style='color:#111;'> 717B </span>","children":null,"spread":false}],"spread":true},{"title":"说明.txt <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"context","children":[{"title":"bin","children":[{"title":"Makefile.Debug <span style='color:#111;'> 34.98KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 35.02KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"context.vc.pdb <span style='color:#111;'> 1.53MB </span>","children":null,"spread":false},{"title":"moc_myTest.obj <span style='color:#111;'> 74.93KB </span>","children":null,"spread":false},{"title":"context.ilk <span style='color:#111;'> 368.00KB </span>","children":null,"spread":false},{"title":"qrc_qml.cpp <span style='color:#111;'> 9.22KB </span>","children":null,"spread":false},{"title":"context.exe <span style='color:#111;'> 56.50KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 127.70KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"qrc_qml.obj <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false},{"title":"myTest.obj <span style='color:#111;'> 67.88KB </span>","children":null,"spread":false},{"title":"moc_myTest.cpp <span style='color:#111;'> 6.03KB </span>","children":null,"spread":false},{"title":"context.pdb <span style='color:#111;'> 1.99MB </span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'> 26.58KB </span>","children":null,"spread":false},{"title":"release","children":null,"spread":false}],"spread":true},{"title":"context.pro <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"myTest.h <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 803B </span>","children":null,"spread":false},{"title":"myTestTwo.cpp <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"myTest.cpp <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"context.pro.user <span style='color:#111;'> 23.35KB </span>","children":null,"spread":false},{"title":"qml.qrc <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"main.qml <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"myTestTwo.h <span style='color:#111;'> 283B </span>","children":null,"spread":false}],"spread":true},{"title":"cplusplus_Visit_Qml","children":[{"title":"obj","children":[{"title":"Makefile.Debug <span style='color:#111;'> 45.15KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 45.12KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"moc_myTest.obj <span style='color:#111;'> 71.67KB </span>","children":null,"spread":false},{"title":"qrc_qml.cpp <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 258.18KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.ilk <span style='color:#111;'> 388.42KB </span>","children":null,"spread":false},{"title":"qrc_qml.obj <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false},{"title":"myTest.obj <span style='color:#111;'> 67.85KB </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.vc.pdb <span style='color:#111;'> 3.00MB </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.pdb <span style='color:#111;'> 3.17MB </span>","children":null,"spread":false},{"title":"moc_myTest.cpp <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.exe <span style='color:#111;'> 65.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'> 26.74KB </span>","children":null,"spread":false},{"title":"release","children":null,"spread":false}],"spread":true},{"title":"myTest.h <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.pro.user <span style='color:#111;'> 23.44KB </span>","children":null,"spread":false},{"title":"cplusplus_Visit_Qml.pro <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"myTest.cpp <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"qml.qrc <span style='color:#111;'> 124B </span>","children":null,"spread":false},{"title":"myqml.qml <span style='color:#111;'> 259B </span>","children":null,"spread":false},{"title":"main.qml <span style='color:#111;'> 992B </span>","children":null,"spread":false}],"spread":true},{"title":"qml_singleton","children":[{"title":"bin","children":[{"title":"Makefile.Debug <span style='color:#111;'> 23.17KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 23.14KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"qml_singleton.vc.pdb <span style='color:#111;'> 1.03MB </span>","children":null,"spread":false},{"title":"qml_singleton.pdb <span style='color:#111;'> 1.49MB </span>","children":null,"spread":false},{"title":"qrc_qml.cpp <span style='color:#111;'> 6.78KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 94.06KB </span>","children":null,"spread":false},{"title":"qrc_qml.obj <span style='color:#111;'> 6.90KB </span>","children":null,"spread":false},{"title":"qml_singleton.ilk <span style='color:#111;'> 360.51KB </span>","children":null,"spread":false},{"title":"qml_singleton.exe <span style='color:#111;'> 49.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Makefile <span style='color:#111;'> 26.63KB </span>","children":null,"spread":false},{"title":"release","children":null,"spread":false}],"spread":true},{"title":"MyStyleObject.qml <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"qml_singleton.pro.user <span style='color:#111;'> 23.40KB </span>","children":null,"spread":false},{"title":"qmldir <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"qml_singleton.pro <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"qml.qrc <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"main.qml <span style='color:#111;'> 483B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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