Fixed grid rendering error (Qt 5 regression)