qt - Prevent redrawing of underlayed elements int QtQuick Qml custom control -
i have 2 custom qml components, inherited qdeclarativeitem
.
in constructors of components set options:
setflag(qgraphicsitem::itemhasnocontents, false); setcachemode(qgraphicsitem::itemcoordinatecache);
in application have element of 1 type above element of type. elements don't share properties, when 1 of them redrawing, redrawing too.
if put standard element above elements (like text
or rectangle
) , change it's properties, doesn't make elements redrawn. suppose, i've forgot set flag in components.
how prevent redrawing of 1 item when changing?
i'm using qt 4.8 , qtquick 1.1
in raster-based rendering system, drawing done on backing store buffer. thus, when changes in qgraphicsview
, items not obscured must drawn in back-to-front z order. if any visible item changes, all visible items intersect must redrawn.
what you're seeing looks normal behavior. unless provide code, it's impossible tell otherwise.
Comments
Post a Comment