本文主要是介绍enum QGraphicsView::CacheModeFlagflags QGraphicsView::CacheMode,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
缓存模式
QGraphicsView::CacheNone
All painting is done directly onto the viewport.
直接在视口上绘制
QGraphicsView::CacheBackground
The background is cached. This affects both custom backgrounds, and backgrounds based on the backgroundBrush property. When this flag is enabled, QGraphicsView will allocate one pixmap with the full size of the viewport.
背景被缓存。即影响自定义背景,也影响基于backgroundBrush属性的背景。当该标志被启用,QGraphicsView将分配一个带有整个视口大小的pixmap。
这篇关于enum QGraphicsView::CacheModeFlagflags QGraphicsView::CacheMode的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!