改变鼠标形状,在绘制坐标系的时候有用到,特此记下: 1 this->setMouseTracking(true); //设置为不按下鼠标键触发moveEvent 2 void mouseMoveEvent(QMouseEvent* event) 3 { 4 QPoint mousepos = eve ...
分类:
其他好文 时间:
2020-07-16 21:16:24
阅读次数:
75
详细错误: 1 gyp ERR! find Python 2 gyp ERR! find Python Python is not set from command line or npm configuration 3 gyp ERR! find Python Python is not set ...
分类:
编程语言 时间:
2020-07-16 12:28:08
阅读次数:
312
日常开发中我们接触到的和事件最接近的应该是消息,这两者也比较容易混淆,难以说清楚它们的界限:什么是事件,而什么是消息? ...
分类:
其他好文 时间:
2020-07-16 11:46:37
阅读次数:
115
(四)事件对象 event.target 显示点击元素的标签名 event.type 事件类型 $("a").click(function(event) { alert(event.type); // "click" }); event.timeStamp 显示两次函数执行之间的时间 diff = ...
分类:
Web程序 时间:
2020-07-16 00:05:07
阅读次数:
93
c++编译报错: .\../../third_party/blink/renderer/modules/clipboard/clipboard.cc(34,19): error: incomplete type 'blink::Event' named in nested name specifie ...
分类:
其他好文 时间:
2020-07-15 23:24:54
阅读次数:
71
在mysql.ini里面把skip-grant-tables这个注释掉,添加这行event_scheduler=ON,保存重启服务器就可以 了 skip-grant-tables作用是跳过验证,有了这个其实你可以把之前的忘记的密码修改掉。 定时器无法开启时需要吧这行注释掉。 ...
分类:
其他好文 时间:
2020-07-15 22:58:39
阅读次数:
50
1:所有的发布订阅就是一个对象。 class Obersve { event={} //等价于下面的constructor // constructor() { // this.event = {} // } subscribe(type, fn) { //订阅 if (Object.keys(th ...
分类:
其他好文 时间:
2020-07-15 15:47:31
阅读次数:
68
判断点击的元素的外层元素是否有我们想要的目标元素,如果有就执行自己相应的逻辑 function clickEvent(event) { const target = 'className'; if (!(event.target.classList.contains(target) || eleme ...
分类:
其他好文 时间:
2020-07-14 16:39:46
阅读次数:
65
准备以下文件 1、root@test:/usr/local/src# ll -rwxr-xr-x 1 root root 1259 Mar 4 20:57 install_zabbix.sh* -rw-r--r-- 1 root root 17200784 Feb 27 13:45 zabbix-4 ...
分类:
其他好文 时间:
2020-07-14 16:18:37
阅读次数:
58
public class A { //定义委托 public delegate void ReturnHandler(string s); //定义事件 public event ReturnHandler returnData; } public class B { A a = new A(); ...
分类:
其他好文 时间:
2020-07-14 13:54:04
阅读次数:
61