会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朱小勇
博客园
园子
首页
新随笔
联系
管理
订阅
上一页
1
···
31
32
33
34
35
36
37
38
39
···
131
下一页
2022年1月6日
C++将类名转字符串
摘要: 1、宏定义 #define STR_CLASS(var) #var 2、使用 class A; cout<<STR_CLASS(A);
阅读全文
posted @ 2022-01-06 11:10 朱小勇
阅读(434)
评论(0)
推荐(0)
2022年1月4日
Js-打印变量的类型
摘要: 1、typeof int a = 0; console.log(typeof a);//Number
阅读全文
posted @ 2022-01-04 15:57 朱小勇
阅读(1803)
评论(0)
推荐(0)
Js-枚举
摘要: 1、定义 var Status = Object.freeze({ "Connecting":0, "Ready":1, "Loading":2, "Processing": 3 }); 2、使用 console.log(Status.Ready) // 1 console.log(Object.k
阅读全文
posted @ 2022-01-04 15:25 朱小勇
阅读(112)
评论(0)
推荐(0)
2022年1月3日
QML-this
摘要: 1、在QML里定义组件时,在内部是可以使用this的,效果等于使用id
阅读全文
posted @ 2022-01-03 22:52 朱小勇
阅读(201)
评论(0)
推荐(0)
2021年12月27日
js字典
摘要: 1、遍历 var json={ "name":"乔峰", "age":"10", "sex":"男" }; for(var key in json){ console.log(key+":"+json[key]); } 2、通过下表获取 var ViewType = { a: "a", b: "b"
阅读全文
posted @ 2021-12-27 22:14 朱小勇
阅读(1145)
评论(0)
推荐(0)
2021年12月23日
QML:ListElement: cannot use script for property value
摘要: 1、出现此问题的地方 为LIstView定义了model,初始化的时候在model里加入了ListElement,但是Element里用到了变量,如下: property int name: "a" ListModel { id: id_tabModel ListElement {a: name}
阅读全文
posted @ 2021-12-23 10:32 朱小勇
阅读(727)
评论(0)
推荐(0)
2021年12月20日
QML-自定义模块
摘要: 一、使用场景 使用情景就是不可再修改的QML或者js文件,可定义成模块,分为如下情况 1、自定义控件 这里的自定义控件可以理解为最小单位控件,不可再修改,与QML的Button、Text等有同样的地位;不要与能够修改或者带逻辑的控件混淆; 2、存放公共变量、函数的JS 如某个JS文件里存放工程所需的
阅读全文
posted @ 2021-12-20 22:25 朱小勇
阅读(1904)
评论(2)
推荐(2)
QML控件设置style样式
摘要: https://blog.csdn.net/contiune/article/details/79450600 https://www.jb51.cc/css/216327.html
阅读全文
posted @ 2021-12-20 22:24 朱小勇
阅读(543)
评论(0)
推荐(0)
2021年12月19日
Rectangle渐变背景色
摘要: 1、代码 import QtQuick 2.0 Rectangle { width: 480; height: 300; //背景色渐变 gradient: Gradient { GradientStop { position: 0.0; color: "#dbddde"; } GradientSt
阅读全文
posted @ 2021-12-19 11:53 朱小勇
阅读(216)
评论(0)
推荐(0)
2021年12月18日
QML的import多层路径问题
摘要: 参考:https://blog.csdn.net/baixvkwfn/article/details/113486604
阅读全文
posted @ 2021-12-18 23:42 朱小勇
阅读(173)
评论(0)
推荐(0)
上一页
1
···
31
32
33
34
35
36
37
38
39
···
131
下一页
公告