[PyQt] custom widgets again
Phil Thompson
phil at riverbankcomputing.co.uk
Tue Jan 15 15:29:36 GMT 2008
On Tuesday 15 January 2008, Martin Höfling wrote:
> Am Dienstag, 15. Januar 2008 schrieb Phil Thompson:
> > Works fine for me, though you may want to give your widget an initial
> > size.
>
> Isn't the initial size already set in the "compiled" UI file?
Well there are problems with the size (maybe the size policy) as it is 0 until
it is part of a layout.
> Did you copy it in your plugins folder / python path or also set the
> variables?
I set the environment variables.
> martin at orthanc:~$ export
> PYQTDESIGNERPATH=/home/martin/code/pymdGUI/Widgets/plugins/;
> PYTHONPATH=/home/martin/code/pymdGUI/ ;
> martin at orthanc:~$ designer-qt4
> ASSERT: "r.isValid()" in file ../formeditor/formwindow.cpp, line 962
> Aborted (core dumped)
>
> martin at orthanc:~$ apt-cache showpkg qt4-designer
> Package: qt4-designer
> Versions:
> 4.3.2-0ubuntu3.1
Phil
More information about the PyQt
mailing list