[PyKDE] PyQt4: Promoting a custom widget in qt4 designer
apaku at gmx.de
Mon Dec 4 10:23:22 GMT 2006
On 04.12.06 03:38:47, Eriol wrote:
> I'm trying to use custom widget promotion in qt4 designer. I attach an
> example of what I'm doing: what's wrong with it?
> I have searched for documentation about this, but I didn't find anything
> for Python.
You're creating the label without a parent widget, so it becomes a
top-level window. Pass self to the constructor of QLabel and it works.
Cold hands, no gloves.
More information about the PyQt