Translations:PySide Advanced Examples/8/en

Add New Widget by Creating UI Object
But a preferred method is to create a UI object which will do all of the setup of your widget at once. The big advantage is that such an UI object can be created graphically with the Qt Designer program. A typical object generated by Qt Designer is like this: