哪里办的讲座呀?
> 1. QThread或QConcurrent配合signal slot似乎足以满足一般多线程的需要。
> 2. Each QObject has a thread id and its events(slots) will be executed
> in the thread it belongs to.
每个QThread现在都有自己的event loop了,这个是4.0就开始有的。
> 3. QConcurrent能自动识别cpu core数量。
> 4. graphic view新增了opengl为render engine的option。作为这一点的前提条件,QWidgets can
> be rendered in QGLCanvas now. 不过似乎要通过graphic view的framework才行。看到一个demo,
> 一个QDialog在opengl canvas里一个tilted plane上,这年头什么OS都讲究frame, widget的3D
> render effect,qt也凑热闹。据说widget会被cache在texture buffer里面,这样repaint起来不会太慢。
QGraphicsView view(&scene);
view.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
4.2引入QGraphicsView时就支持的。
> 5. signals can be connected to signals。以前不知道,看到demo code里有,问是不是4.4新功能,结
> 果被告知3.x就有了。回来问组里一个qt老手,也不知道,俺们才找到平衡咧。
这个好像qt2就支持的了,没用过1.x,所以不记得是不是那个时候就支持了,估计是可以的。
http://doc.trolltech.com/2.3/signalsandslots.html
It is even possible to connect a signal directly to another signal.
(This will emit the second signal immediately whenever the first is
emitted.)
> 记得住的就这么多了。
我还以为是国内办的讲座呢,hehe。
ICS和KDAB是Trolltech的培训合作伙伴,欧美的这种机会比较多。