One way of using the ui file generated by QtDesigner