Description
When resizing and reverting a View3D that has an invisible parent (visible: false or opacity: 0), a black rectangle is displayed instead of the 3D content.
The problem can be reproduced even with a completely empty View3D, but I prepared an example based on the example project from Qt quick3d\simple for clarity. The problem is not reproduced with 100% probability, but very often. It will be enough to press the "Break 3DView" button 1-2 times. The problem reproduces regardless of the interval between hiding the parent and reverting everything to the previous state, which can also be tested in my example. The problem was reproduced on Qt versions 5.15.10 and 6.7.0.