会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北冥没有鱼
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
2024年3月27日
数值类型连续Bit存储读取方法
一般为了节省内存,一个unsigned char占8bit,分bit进行存储。存储时单个bit对外可以使用bool值,多个连续的bit可以使用unsigned char。 获取/设置单个bit值方法 获取/设置多个连续bit值方法 static bool getBitValue(unsigned c
Read More
posted @ 2024-03-27 16:53 北冥没有鱼
Views(57)
Comments(0)
Diggs(0)
2024年2月29日
QDialog 在linux下设置最大化最小化按钮失效的解决方案
QDialog通过setWindowFlags(Qt::Dialog | Qt:: WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint); 可以在Windows下正常显示最大化最小化按钮,但是在Linux下不会显示。 解决方案: setWindow
Read More
posted @ 2024-02-29 14:23 北冥没有鱼
Views(423)
Comments(0)
Diggs(0)
2022年1月7日
QT自定义button绘制
重载QPushButton的paintEvent(QPaintEvent *e) void paintEvent(QPaintEvent *e) { QPushButton::paintEvent(e); //设置画布 QPainter painter(this); //设置原点,默认原点为左上角
Read More
posted @ 2022-01-07 18:06 北冥没有鱼
Views(670)
Comments(0)
Diggs(0)
2021年12月15日
CMake学习
1.创建工程 #设置工程名 project($(project_name)) #设置临时变量/修改变量名 set(variable_name variable_value,variable_value1,.. CACHE )#cache可以缓存 #设置工程文件显示分组 SOURCE_GROUP("s
Read More
posted @ 2021-12-15 17:25 北冥没有鱼
Views(507)
Comments(0)
Diggs(0)
2021年11月18日
first day
Read More
posted @ 2021-11-18 16:29 北冥没有鱼
Views(27)
Comments(0)
Diggs(0)
上一页
1
2
公告