摘要: 1、事件循环一般用exec()函数开启。QApplicaion::exec()、QMessageBox::exec()都是事件循环。其中前者又被称为主事件循环。 事件循环首先是一个无限“循环”,程序在exec()里面无限循环,能让跟在exec()后面的代码得不到运行机会,直至程序从exec()跳出。 阅读全文
posted @ 2017-11-14 19:50 流水灯 阅读(6785) 评论(0) 推荐(0) 编辑
摘要: 在介绍在以前,我们要认识两个术语: 可重入的(Reentrant):如果多个线程可以在同一时刻调用一个类的所有函数,并且保证每一次函数调用都引用一个唯一的数据,就称这个类是可重入的(Reentrant means that all the functions in the referenced cl 阅读全文
posted @ 2017-11-14 19:34 流水灯 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: The QElapsedTimer class provides a fast way to calculate elapsed times. The QElapsedTimer class is usually used to quickly calculate how much time has 阅读全文
posted @ 2017-11-14 16:18 流水灯 阅读(1643) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-11-14 14:35 流水灯 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-11-14 14:27 流水灯 阅读(2) 评论(0) 推荐(0) 编辑