After more experimenting, I found a plausible repro condition. Reported this as a bug.

https://bugreports.qt.io/browse/QTBUG-57466