Graphics View提供了一个界面,它既可以管理大数量的定制2D graphical items,又可与它们交互,有一个view widget可以把这些项绘制出来,并支持旋转与缩放。这个柜架也包含一个事件传播结构,对于在scene中的这些items,它具有双精度的交互能力。Items能处理键盘... Read More
posted @ 2014-01-02 17:28 星语海蓝 Views(114178) Comments(2) Diggs(4) Edit
总结(-)1> 定时器的使用QTimer*timer=newQTimer(this);connect(timer,SIGNAL(timeout()),this,SLOT(update())); // 设置定时器回调函数timer->start(1000); // 启动定时器2> 得到系统当前时间QTimetime=QTime::currentTime();time.hour();time.minute();time.second();time.msec();3> 窗口 widget 相关setWindowTitle(tr("My Title"));/ Read More
posted @ 2014-01-02 14:45 星语海蓝 Views(5777) Comments(1) Diggs(1) Edit