I use this script to start qt designer with my custom widgets (in Python 3) visible:
#!/usr/bin/env python3
import os, sys, subprocess
curDir = os.path.dirname(os.path.abspath(__file__))
params = list(sys.argv) # copy list
params[0] = 'designer' # "designer-qt4" on Linux
widgetsDir = os.path.join(curDir, 'wic', 'widgets')
# add search path for custom widgets and plugins for designer
os.putenv('PYQTDESIGNERPATH', widgetsDir)
subprocess.Popen(params)
But it looks like designer is using python 2.7 to use the widget plugins:
vic@ubuntu:~/wic$ python3 qt_designer.pyw
vic@ubuntu:~/wic$ File "/home/vic/wic/wic/widgets/w_date_edit_plugin.py", line 63
app.exec()
^
SyntaxError: invalid syntax
How to instruct designer to use Python 3, not Python 2?
I use Kubuntu 11.10, KDE 4.7.2, python3.2 and python2.7, PyQt v4.8.5 compiled for Python 3