I use Eric 4.3.4<br>How to make it possible to start with QT Designer,
designate the path search directory containing the plugins and Python
where it can find the widgets.<br>Example:<br><br># Set a specified environment variable with a directory name.<br>def setEnvironment(env, var_name, dir_name):<br> # Convert the relative directory name to an absolute one.<br>
dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), dir_name)<br><br> # Remove any existing value so that we have a controlled environment.<br> idx = env.indexOf(QtCore.QRegExp("^%s=.*" % var_name, QtCore.Qt.CaseInsensitive))<br>
<br> if idx >= 0:<br> env.removeAt(idx)<br><br> env << "%s=%s" % (var_name, dir)<br><br># Tell Qt Designer where it can find the directory containing the plugins and<br># Python where it can find the widgets.<br>
env = QtCore.QProcess.systemEnvironment()<br>setEnvironment(env, "PYQTDESIGNERPATH", "python")<br>setEnvironment(env, "PYTHONPATH", "widgets")<br><br># Start Designer.<br>designer = QtCore.QProcess()<br>
designer.setEnvironment(env)<br>....<br><br>