On 7 October 2017 at 16:08, Patrick Stinson <patrickk...@gmail.com> wrote: > Hi there! > > I have a graph-ish diagram app where dragging some objects (like nodes) > necessitates dragging other objects (like connecting edges). However, if I > update an edge from the mouse event or ItemChanged(position) event then the > edge isn’t painted until the next paint event. At times, this is quite > obvious for example when nudging a node with an arrow key and the node is > going in one direction and edge goes in the other direction for one frame > because it is one buffer behind. > > Any thoughts on synchronous painting?
Have you check the "Elastic node" example? It does exactly what you're describing. And last time i tried it, it worked very well, no painting artifact. How is your "update" done exactly? Chris > > Thank you > -Patrick > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest