摘要: debug版本: mkdir build cmake -S . -B build/debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="./jsoncpp-debug" cm 阅读全文
posted @ 2025-03-15 14:54 仰望星河Leon 阅读(11) 评论(0) 推荐(0)
摘要: //切换方向 enum class switchDirection { Horizontal, //水平 Vertical //垂直 }; //动画模式 enum class aniMode { Switch, //切换 Cover //覆盖 }; //设置动画持续的间隔 void setDurat 阅读全文
posted @ 2025-02-10 19:21 仰望星河Leon 阅读(21) 评论(0) 推荐(0)
摘要: enum class Direction { Horizontal, Vertical }; //构造 NaviBar(QWidget *parent = nullptr, Direction dir=Direction::Horizontal); //设定可增加按钮最大数量 void setBtn 阅读全文
posted @ 2025-02-04 20:13 仰望星河Leon 阅读(36) 评论(0) 推荐(0)
摘要: 通过网盘分享的文件:火之鸟 链接: https://pan.baidu.com/s/1IyYRb9dNkPNf_WJhKw_VgA?pwd=nsgc 提取码: nsgc 阅读全文
posted @ 2025-01-24 11:24 仰望星河Leon 阅读(195) 评论(0) 推荐(0)
摘要: https://www.bilibili.com/video/BV1R4zRYnE29/?spm_id_from=333.880.my_history.page.click&vd_source=3b08e97e50222fa2ec22737f6dcb2202的一个QML实现 //HeartRound 阅读全文
posted @ 2024-12-09 11:02 仰望星河Leon 阅读(42) 评论(0) 推荐(0)
摘要: Image { id:img source:".jpg" smooth: true width:800 height:600 Rectangle { id:txt1 width:img.width/4 height:img.height anchors.right: img.right anchor 阅读全文
posted @ 2024-10-24 00:33 仰望星河Leon 阅读(60) 评论(0) 推荐(0)
摘要: 基于https://www.bilibili.com/video/BV1Li421Y7EH/?spm_id_from=333.999.top_right_bar_window_history.content.click原理的一个qt实现 #pragma once #include <QWidget> 阅读全文
posted @ 2024-10-14 21:21 仰望星河Leon 阅读(30) 评论(0) 推荐(0)
摘要: #ifndef MYSQLCONNECTION_H #define MYSQLCONNECTION_H #include <iostream> #include <mysql.h> #include <vector> class MySQLConnection { public: /// <summ 阅读全文
posted @ 2024-08-07 22:05 仰望星河Leon 阅读(45) 评论(0) 推荐(0)
摘要: 非阻塞recv EAGAIN、EWOULDBLOCK错误码值11 返回值 含义 >0 接收字节数 0 接收FIN包,连接被对端断开 -1 (errno==EAGAIN||EWOULDBLOCK)表示还有数据未读。反之,则表示发生了错误。 //epollServer.cpp #include <std 阅读全文
posted @ 2024-07-18 18:38 仰望星河Leon 阅读(82) 评论(0) 推荐(0)
摘要: bitmap 位图法,用每个bit位存储状态(如0/1),用于判断某个数据是否存在。适用于数据量很大,但状态不多的情况。 数据的取值范围[min,max],创建长度为max-min+1的bit数组bitmap,若num存在则bitmap[num]=1,否则为0。 用char数组存储,每个元素存1字节 阅读全文
posted @ 2024-07-18 02:33 仰望星河Leon 阅读(237) 评论(0) 推荐(0)