The new test creates and sets a QStyle for all widgets in an UI hierarchy. One of the widgets, a QFontComboBox, contains a QLineEdit originated in C++, calling setStyle in it must not steal the ownership of the QStyle or else things will break.