[PyQt] custom widgets again

Phil Thompson phil at riverbankcomputing.co.uk
Tue Jan 15 11:31:04 GMT 2008


On Tuesday 15 January 2008, Martin Höfling wrote:
> Hi all, heres my next problem with custom widgets.
>
> Problem: Widget doesn't show up in designer
>
> $CODE is set
>
> calling designer with:
> export PYQTDESIGNERPATH=$CODE/Widgets/plugins/
> export PYTHONPATH=$CODE
> designer-qt4
>
> ...on Ubuntu Gutsy
>
> Content of Widgets:
>
> Widgets/fileSelectorWidget.py : the implementation of the widget (attached)
> Widgets/__init__.py
> Widgets/Ui_fileSelectorWidget.py : Compiled UI file
> Widgets/fileSelectorWidget.ui
> Widgets/plugins/fileSelectorWidgetPlugin.py the plugin class (attached)
>
> I followed the wiki entry mentioned (hopefully close enough) and
> implemented the widget and plugin class (attached).
>
> In particular, is ok in my case?:
>
>     def includeFile(self):
>         return "Widgets.fileSelectorWidget"
>
> Any ideas what could be wrong here?

You need to post the .ui file if people are going to reproduce the problem.

Phil



More information about the PyQt mailing list