Solved by backing out my last change which was "from PyQt5.Qt import QT_VERSION_STR ... print(QT_VERSION_STR)". I can't reproduce it in a small example. Baffles me how this affects QGraphicsItem.setParentItem() much later in the execution. Again, my app doesn't use QGraphicsVideoItem at all.