mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-25 19:34:13 +02:00
3e34a6d55f
QGraphicsView::render() paints only what the scene draws, so a scene without a background brush left the off-screen buffer uninitialized and the inversion turned that memory into noise. The buffer is now filled white first, which the inversion turns into the Base color. listenToScene() connected a new receiver on every setScene() call and never dropped the previous scene's. It now keeps a single connection and replaces it. Test in tst_qetpalette: paletteViewFillsWhatTheSceneLeavesBlank.