title: "Environment variable PYSIDE_DESIGNER_PLUGINS is not set, bailing out."
body: <p>I have installed open source qt creator (free version) and creating very simple desktop application. I am able to create simple window but when I am running I am getting following error:</p>
  <p>I have tried to follow this page but could not understand to fix this issue</p>
  <p><a href="https://www.qt.io/blog/qt-for-python-6.1" rel="noreferrer">https://www.qt.io/blog/qt-for-python-6.1</a></p>
  <pre><code>Environment variable PYSIDE_DESIGNER_PLUGINS is not set, bailing out.
  No instance of QPyDesignerCustomWidgetCollection was found.
  </code></pre>
  <p>Python File</p>
  <pre><code># This Python file uses the following encoding: utf-8
  import os
  from pathlib import Path
  import sys
  
  from PySide6.QtWidgets import QApplication, QMainWindow
  from PySide6.QtCore import QFile
  from PySide6.QtUiTools import QUiLoader
  
  
      class test(QMainWindow):
          def __init__(self):
              super(test, self).__init__()
              self.load_ui()
      
          def load_ui(self):
              loader = QUiLoader()
              path = os.fspath(Path(__file__).resolve().parent / &quot;form.ui&quot;)
              ui_file = QFile(path)
              ui_file.open(QFile.ReadOnly)
              loader.load(ui_file, self)
              ui_file.close()
      
      
      if __name__ == &quot;__main__&quot;:
          app = QApplication([])
          widget = test()
          widget.show()
          sys.exit(app.exec_())
  </code></pre>
  <p>adding xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;ui version=&quot;4.0&quot;&gt;
   &lt;class&gt;test3&lt;/class&gt;
   &lt;widget class=&quot;QMainWindow&quot; name=&quot;test3&quot;&gt;
    &lt;property name=&quot;geometry&quot;&gt;
     &lt;rect&gt;
      &lt;x&gt;0&lt;/x&gt;
      &lt;y&gt;0&lt;/y&gt;
      &lt;width&gt;1332&lt;/width&gt;
      &lt;height&gt;702&lt;/height&gt;
     &lt;/rect&gt;
    &lt;/property&gt;
    &lt;property name=&quot;windowTitle&quot;&gt;
     &lt;string&gt;test3&lt;/string&gt;
    &lt;/property&gt;
    &lt;widget class=&quot;QWidget&quot; name=&quot;centralwidget&quot;&gt;
     &lt;widget class=&quot;QCheckBox&quot; name=&quot;checkBox&quot;&gt;
      &lt;property name=&quot;geometry&quot;&gt;
       &lt;rect&gt;
        &lt;x&gt;300&lt;/x&gt;
        &lt;y&gt;240&lt;/y&gt;
        &lt;width&gt;70&lt;/width&gt;
        &lt;height&gt;17&lt;/height&gt;
       &lt;/rect&gt;
      &lt;/property&gt;
      &lt;property name=&quot;text&quot;&gt;
       &lt;string&gt;CheckBox&lt;/string&gt;
      &lt;/property&gt;
     &lt;/widget&gt;
    &lt;/widget&gt;
    &lt;widget class=&quot;QMenuBar&quot; name=&quot;menuBar&quot;&gt;
     &lt;property name=&quot;geometry&quot;&gt;
      &lt;rect&gt;
       &lt;x&gt;0&lt;/x&gt;
       &lt;y&gt;0&lt;/y&gt;
       &lt;width&gt;1332&lt;/width&gt;
       &lt;height&gt;21&lt;/height&gt;
      &lt;/rect&gt;
     &lt;/property&gt;
     &lt;widget class=&quot;QMenu&quot; name=&quot;menuFile&quot;&gt;
      &lt;property name=&quot;title&quot;&gt;
       &lt;string&gt;File&lt;/string&gt;
      &lt;/property&gt;
      &lt;addaction name=&quot;actionOpen&quot;/&gt;
      &lt;addaction name=&quot;actionsave&quot;/&gt;
     &lt;/widget&gt;
     &lt;widget class=&quot;QMenu&quot; name=&quot;menuEdit&quot;&gt;
      &lt;property name=&quot;title&quot;&gt;
       &lt;string&gt;Edit&lt;/string&gt;
      &lt;/property&gt;
     &lt;/widget&gt;
     &lt;widget class=&quot;QMenu&quot; name=&quot;menuArchive_and_update_indicator&quot;&gt;
      &lt;property name=&quot;title&quot;&gt;
       &lt;string&gt;Archive and update indicator&lt;/string&gt;
      &lt;/property&gt;
     &lt;/widget&gt;
     &lt;addaction name=&quot;menuFile&quot;/&gt;
     &lt;addaction name=&quot;menuEdit&quot;/&gt;
     &lt;addaction name=&quot;menuArchive_and_update_indicator&quot;/&gt;
    &lt;/widget&gt;
    &lt;action name=&quot;actionOpen&quot;&gt;
     &lt;property name=&quot;text&quot;&gt;
      &lt;string&gt;Open&lt;/string&gt;
     &lt;/property&gt;
    &lt;/action&gt;
    &lt;action name=&quot;actionsave&quot;&gt;
     &lt;property name=&quot;text&quot;&gt;
      &lt;string&gt;Save&lt;/string&gt;
     &lt;/property&gt;
    &lt;/action&gt;
   &lt;/widget&gt;
   &lt;resources/&gt;
   &lt;connections/&gt;
  &lt;/ui&gt;
  </code></pre>