摘要: dhcp lease /proc/net/arp ip neigh(iproute2) 参考连接 linux /proc/net/arp 文件 - wateras1的日志 - 电子工程世界-论坛 阅读全文
posted @ 2022-07-18 10:20 爱弹钢琴的卡农 阅读(47) 评论(0) 推荐(0)
摘要: 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)
摘要: 模糊效果 实现 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)
摘要: 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)
摘要: 效果 void Clock::paintEvent(QPaintEvent *event) { /** 绘制时钟 */ qint64 msec = QDateTime::currentMSecsSinceEpoch() % 60000; QPainter painter(this); painter 阅读全文
posted @ 2022-03-07 14:52 爱弹钢琴的卡农 阅读(434) 评论(1) 推荐(0)
摘要: 内核配置 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)
摘要: 主机环境 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)
摘要: 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)
摘要: 这不是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)
摘要: #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)