This got broken by e07d8f3066. Creating QGridLayout with parent and setting it later has not the same effect.
e07d8f3066