Can you check if the paintEvent on the container is only for the area of the child or for the whole container?
My guess is that it is just for the area of the child, basically the automatic background painting for the child. In which case some flags like widget attributes Qt::WA_NoSystemBackground or Qt::WA_OpaquePaintEvent or Qt::WA_TranslucentBackground might help.
Cheers,
_
Bookmarks