I have a QGraphicsScene where I initially drew the background in the drawBackground() function. However, this required quite a few calculations and turned out to be pretty slow so I created a bunch of items instead. This had the expected speedup.
My question: is there a way to treat these items as the background? Would it even matter if I treated them as background items?
Thanks
There are three layers in terms of QGraphicsScene (see Qt docs):
Threrefore, there is no legal way to put an item into the background layer.
However, you could use QGraphicsItem Sorting to place some items behind others, making them to appear as a background.