摘要: void quickSort(int a[],int begin,int end) { if(begin >= end) { return; }//递归结束条件 int i = begin; int j = end; int tempValue = a[i]; while( i != j) { wh 阅读全文
posted @ 2021-04-19 16:33 beautifulday 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 执行: sudo apt-get install libgl1-mesa-dev 阅读全文
posted @ 2021-04-09 16:09 beautifulday 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ./qtcreatorqt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.This application failed to start because no Qt pl 阅读全文
posted @ 2021-04-09 10:26 beautifulday 阅读(510) 评论(0) 推荐(0) 编辑
摘要: linux运行如软件的时候报权限不足 用命令chmod 修改一下对应软件运行目录下的.sh权限就可以了 chmod u+x *.sh 阅读全文
posted @ 2021-04-09 09:52 beautifulday 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 笔记 阅读全文
posted @ 2021-03-26 16:44 beautifulday 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 运行下面代码修复该问题 sudo apt install libopengl0 -y 阅读全文
posted @ 2021-03-17 15:52 beautifulday 阅读(2226) 评论(0) 推荐(0) 编辑
摘要: QDateEdit可以弹出日期选择框 qt默认的日期选择窗口是不带today按钮的,如何添加按钮快速定位到今天日期呢? 我们可以自定义一个类通过继承QCalendarWidget的形式来实现 详细代码演示 .h头文件 #ifndef QCUSTOMCALENDARWIDGET_H#define QC 阅读全文
posted @ 2021-03-03 14:44 beautifulday 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 如果设置了子容器的样式 子容器里面的控件的样式将不会再继承父父容器的样式 阅读全文
posted @ 2021-02-08 13:44 beautifulday 阅读(499) 评论(0) 推荐(0) 编辑
摘要: //取消表格cell tab键导航 ui.tableWidget->setTabKeyNavigation(false); 通过这样设置,表格里面的cell就不会获取焦点,从而tablewidget的焦点可以切到其他控件上 哈 阅读全文
posted @ 2021-01-18 17:27 beautifulday 阅读(795) 评论(0) 推荐(0) 编辑
摘要: #myWidget:focus { border-width:1px; border-style:solid; border-color:#00C2BB; } 阅读全文
posted @ 2021-01-14 14:23 beautifulday 阅读(633) 评论(0) 推荐(0) 编辑