改变鼠标形状,在绘制坐标系的时候有用到,特此记下: 1 this->setMouseTracking(true); //设置为不按下鼠标键触发moveEvent 2 void mouseMoveEvent(QMouseEvent* event) 3 { 4 QPoint mousepos = eve ...
分类:
其他好文 时间:
2020-07-16 21:16:24
阅读次数:
75
class AppendStatus{ successed = false; constructor(){ } success(listenEvent){ this.successed = true; if(listenEvent){ listenEvent.run(); } } getStatus ...
分类:
其他好文 时间:
2020-07-16 21:01:41
阅读次数:
55
单行: white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 多行: word-break: break-all; text-overflow: ellipsis; overflow: hidden; display: -webki ...
分类:
Web程序 时间:
2020-07-15 22:46:33
阅读次数:
93
TheQLoggingCategorycla***epresentsacategory,or‘area’inthelogginginfrastructure.日志系统的一个种类TheQCanBusDeviceclassistheinterfaceclassforCANbusenumQCanBusDevice::ConfigurationKeyThisenumdescribesthepossible
分类:
其他好文 时间:
2020-07-15 13:10:22
阅读次数:
96
1 简介 参考视频:https://www.bilibili.com/video/BV1XW411x7NU?p=74 使用多线程的好处:提高应用程序响应速度、使多CPU更加高效、改善程序结构。 在Qt中使用QThread来管理线程。Qt中使用线程时,需要自己实现一个thread的类。 2 测试说明 ...
分类:
编程语言 时间:
2020-07-15 01:30:13
阅读次数:
95
字符串相乘 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。 示例 1: 输入: num1 = "2", num2 = "3" 输出: "6" 示例 2: 输入: num1 = "123", num2 = "456" 输 ...
分类:
其他好文 时间:
2020-07-14 16:48:43
阅读次数:
71
验证码如上所示 100*30 下面咱们开始神奇的旅程 下载批量验证码图片数据集用来训练 此验证码比较简单就下载了500 #!/usr/bin/env python # -*- coding:utf-8 -*- # Author: zhibo.wang # E-mail: gm.zhibo.wang@ ...
分类:
编程语言 时间:
2020-07-14 16:26:11
阅读次数:
100
[CSS3 @keyframes 规则实例 使一个div元素逐渐移动200像素: @keyframes mymove { from {top:0px;} to {top:200px;} }@-webkit-keyframes mymove /* Safari and Chrome */ { from... ...
分类:
Web程序 时间:
2020-07-13 21:40:29
阅读次数:
77
崩溃的位置是在main.cpp return a.exec(); 通过代码回溯和按钮点击位置查看到一个头文件 中的 char str [100] 在lineedit->settext显示崩溃;但是经过反复看,char str[]里边的内容并没有数组越界。 先修改了一下 char str [100] ...
分类:
其他好文 时间:
2020-07-13 19:56:04
阅读次数:
79
问题:edge浏览器下,固定列的边框消失 原因:ng-zorro-antd表格组件使用nzLeft和nzRight指令固定的表格列,这两个指令的实现css3中的标签: position: -webkit-sticky !important; position: sticky !important; ...
分类:
其他好文 时间:
2020-07-13 18:42:17
阅读次数:
88