会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朱小勇
博客园
园子
首页
新随笔
联系
管理
订阅
上一页
1
···
33
34
35
36
37
38
39
40
41
···
134
下一页
2022年2月15日
频谱仪显示:IF OVLD
摘要: Ref 和 ATTEN这两项的设置很重要,防止因实际功率比频谱仪显示的数值高导致测试结果有问题,但实际上很多频谱仪参考值最高只能设置到0dBm,这样就只能改变衰减值来做,通常将衰减值设置到中频滤波器刚好不失真,而中频滤波器失真时频谱仪会显示“IF OVLD”。 参考:https://blog.csd
阅读全文
posted @ 2022-02-15 17:46 朱小勇
阅读(1063)
评论(0)
推荐(0)
2022年1月28日
C++获取迭代器的下标
摘要: 1、 auto it = arr.begin(); it++; int index = it - arr.begin();
阅读全文
posted @ 2022-01-28 16:00 朱小勇
阅读(824)
评论(0)
推荐(0)
2022年1月16日
C++虚函数指针
摘要: 1、空类的sizeof等于1 2、当一个类有虚函数的时候,会为其分配一个虚函数指针,大小为4
阅读全文
posted @ 2022-01-16 13:35 朱小勇
阅读(118)
评论(0)
推荐(0)
2022年1月14日
QML键盘响应
摘要: 1、代码 Item { focus: true Keys.onPressed: { console.log(event.key) switch(event.key) { case Qt.Key_U: break; case Qt.Key_M: Qt.quit(); break; } } } 必须设置
阅读全文
posted @ 2022-01-14 14:30 朱小勇
阅读(165)
评论(0)
推荐(0)
Signal QQmlEngine::quit() emitted, but no receivers connected to handle it quit
摘要: 1、问题描述 在QML中调用Qt.quit()但是程序没有退出 Keys.onPressed: { switch(event.key) { case Qt.Key_M: Qt.quit(); break; } } 2、解决 //main.cpp QApplication app(argc, argv
阅读全文
posted @ 2022-01-14 14:28 朱小勇
阅读(91)
评论(0)
推荐(0)
2022年1月13日
QVariant转指针或其他非内建数据
摘要: 1、QVariant转指针 QVariant a; //do something QObject* b = (QObject*)a.value<QObject*>(); 2、QVariant转其他非内建数据 QVariant a; //do something T b = (T)a.value<T>
阅读全文
posted @ 2022-01-13 17:18 朱小勇
阅读(715)
评论(0)
推荐(0)
std::vector学习
摘要: https://www.cnblogs.com/judes/p/10736275.html https://www.cnblogs.com/judes/p/10498959.html https://www.cnblogs.com/judes/p/13753516.html 1、删除指定序号的内容
阅读全文
posted @ 2022-01-13 09:54 朱小勇
阅读(648)
评论(0)
推荐(0)
2022年1月9日
Qt-blockSignals
摘要: 1、函数原型 当设置为true时,QObject对象[子类]不会发出信号 2、使用 在动态为QComboBox动态添加item的时候,它会发出xxxChanged信号,但是初始情况下我们不希望其发出,待初始化完成后再发出。 则可以: ①、先设置blockSignals(true); ②、动态添加it
阅读全文
posted @ 2022-01-09 22:24 朱小勇
阅读(435)
评论(0)
推荐(0)
2022年1月8日
C++-const修饰指针时类型识别方法
摘要: 多才多艺的const,修饰指针的的功能非常难辨认,总结出一个方法:用类似于函数的方式记忆。 1、const修饰函数【这种形式非常好识别】 const int* getData(); //返回值为常量[指向的对象] int getData() const; //函数本身为“常量”[函数不能修改类属性]
阅读全文
posted @ 2022-01-08 23:28 朱小勇
阅读(72)
评论(0)
推荐(0)
2022年1月6日
js打印异常日志
摘要: 1、代码 var x = 12; console.assert(x==12, "this will pass") console.assert(x>12, "this will fail") 第一个参数放我们希望成立的表达式,如果运行时不成立则打印这个异常,系统会将调用堆栈也打印出来。【QML中使用
阅读全文
posted @ 2022-01-06 18:34 朱小勇
阅读(585)
评论(0)
推荐(0)
上一页
1
···
33
34
35
36
37
38
39
40
41
···
134
下一页
公告