title: Displaying PySide2 UI from pyuic5 converted Python code
body: <p>So I've designed my UI using QtDesigner and converted it into a Python Class, the class is named Ui_MainWindow and the function I want to call to display the UI is called setupUi. </p>
  
  <p>I have found code snippets to display the UI using PySide1 but as a novice user I don't understand how to port the code to PySide2.</p>
  
  <pre><code>from PySide2 import QtCore, QtGui, QtWidgets
  
  class Ui_MainWindow(object):
  def setupUi(self, MainWindow):
      MainWindow.setObjectName("MainWindow")
      MainWindow.resize(381, 347)......................................etc.
  </code></pre>
  
  <p><a href="https://pastebin.com/NJXEaLrF" rel="nofollow noreferrer">https://pastebin.com/NJXEaLrF</a></p>
  
  <p>I cannot find a full tutorial on converting the .UI file and how to use the output file.</p>