图形视图框架
The Graphics View Framework
--The Scene(场景)
--The View(视图)
--The Item(对象)
--Item Coordinates(对象坐标)
--Scene Coordinates(场景坐标)
--View Coordinates(视图坐标)
--Coordinate Mapping(坐标映射)
4.Key Features(主要特征)
--Zooming and rotating(缩放和旋转)
--Printing(打印)
--Drag and Drop(拖拉拖放)
--Cursors and Tooltips(光标和提示框)
--Animation(动画效果)
--OpenGL Rendering(OpenGL渲染)
--Item Groups(对象组)
--Widgets and Layouts(组件和布局)
--Embedded Widget Support(嵌入式组件支持)
5.Performance(性能)
--Floating Point Instructions(浮点运算指令)
Graphics View provides a surface for managing and interacting with a large number of custom-made 2D graphical items, and a view widget for visualizing the items, with support for zooming and rotation.
The framework includes an event propagation architecture that allows precise double-precision interaction capabilities for the items on the scene. Items can handle key events, mouse press, move, release and double click events, and they can also track mouse movement.
Graphics View uses a BSP (Binary Space Partitioning) tree to provide very fast item discovery, and as a result of this, it can visualize large scenes in real-time, even with millions of items.
Graphics View was introduced in Qt 4.2, replacing its predecessor, QCanvas.
图形视图提供一个可管理和交互大量可定制2D图形对象的surface ,和一个可视化的视图组件,并且支持缩放和旋转。
这个框架包含了一个事件传播架构,它能在场景中允许对象有精确的双精度交互能力。对象能够处理重要事件,例如,鼠标按下、移动、放开和双击等事件,它也能够跟踪鼠标的移动。
图形视图使用BSP树(Binary Space Partitioning/二进制空间分区)来提供非常快的对象的发现,当然,它能在实时中可视化大的场景,即使有百万计的对象。
图形视图是在QT4.2引入,并取代QCanvas
注:本文翻译也参考了http://blog.csdn.net/aladdina/article/details/5413545,感谢前辈的努力!