Create a QFrame subclass and promote it in designer.