会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
爱弹钢琴的卡农
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2022年7月18日
linux获取在线客户端列表
摘要: dhcp lease /proc/net/arp ip neigh(iproute2) 参考连接 linux /proc/net/arp 文件 - wateras1的日志 - 电子工程世界-论坛
阅读全文
posted @ 2022-07-18 10:20 爱弹钢琴的卡农
阅读(47)
评论(0)
推荐(0)
2022年3月7日
QT使用SVG
摘要: QSvgWidget svg(this); QDomDocument doc("svg"); QDomElement el_svg = doc.createElement("svg"); doc.appendChild(el_svg); el_svg.setAttribute("xmlns", "h
阅读全文
posted @ 2022-03-07 15:19 爱弹钢琴的卡农
阅读(477)
评论(0)
推荐(0)
QPainter添加效果
摘要: 模糊效果 实现 void Button::paintEvent(QPaintEvent *event) { QColor bg; if (isEnabled()) { if (isDown()) { bg.setRgb(78, 131, 253); } else { bg.setRgb(51, 11
阅读全文
posted @ 2022-03-07 15:12 爱弹钢琴的卡农
阅读(122)
评论(0)
推荐(0)
QT监听全局事件
摘要: application.h #ifndef APPLICATION_H #define APPLICATION_H #include <QApplication> #include <QMouseEvent> #include <QTouchEvent> #include <QDebug> clas
阅读全文
posted @ 2022-03-07 15:05 爱弹钢琴的卡农
阅读(316)
评论(0)
推荐(0)
QT绘制时钟和进度条
摘要: 效果 void Clock::paintEvent(QPaintEvent *event) { /** 绘制时钟 */ qint64 msec = QDateTime::currentMSecsSinceEpoch() % 60000; QPainter painter(this); painter
阅读全文
posted @ 2022-03-07 14:52 爱弹钢琴的卡农
阅读(434)
评论(1)
推荐(0)
Linux蓝牙功能移植
摘要: 内核配置 CONFIG_BT=y CONFIG_BT_BREDR=y CONFIG_BT_RFCOMM=y CONFIG_BT_RFCOMM_TTY=y CONFIG_BT_BNEP=y CONFIG_BT_BNEP_MC_FILTER=y CONFIG_BT_BNEP_PROTO_FILTER=y
阅读全文
posted @ 2022-03-07 14:25 爱弹钢琴的卡农
阅读(808)
评论(0)
推荐(0)
2021年1月26日
嵌入式linux查找target文件依赖的动态链接库
摘要: 主机环境 arm-himix200-linux-readelf -d output/target/usr/sbin/httpd | awk -F'[\\[\\]]' '/\(NEEDED\)/{print $2}' arm-himix200-linux-gcc --sysroot=/home/d2/
阅读全文
posted @ 2021-01-26 14:14 爱弹钢琴的卡农
阅读(112)
评论(0)
推荐(0)
2020年11月18日
ubuntu添加32位支持
摘要: sudo dpkg --add-architecture i386 sudo apt update sudo apt install libc6:i386 sudo apt install libstdc++6:i386 # ldd 看看还差啥 ldd /opt/hisi-linux/x86-arm
阅读全文
posted @ 2020-11-18 15:44 爱弹钢琴的卡农
阅读(305)
评论(1)
推荐(0)
2020年10月20日
这不是CSS hack
摘要: 这不是CSS hack而是条件CSS, 更强大, 更优雅 <template> <!-- 现代浏览器显示蓝色, IE显示红色 --> <div class="box" style="background: red; width: 100px; height: 100px"></div> </temp
阅读全文
posted @ 2020-10-20 14:47 爱弹钢琴的卡农
阅读(68)
评论(0)
推荐(0)
2020年9月30日
C11新特性_Generic用法
摘要: #include <stdio.h> #define print_var(x) \ printf(_Generic(x, int \ : #x " = %d\n", float \ : #x " = %f\n"), \ x); int main(int argc, char const *argv[
阅读全文
posted @ 2020-09-30 14:40 爱弹钢琴的卡农
阅读(300)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告