QTBUG-53013 probably explains why the contents are not reordered with the Qt5 app because it has only been run on Windows. This bug most likely affects the behaviour change seen between PyQt4 and PyQt5 running on linux. Thanks for your insight.