On Monday 04 December 2006 11:23, Andreas Pakulat wrote: > 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.
Slightly OT (in fact more a general question): So it is possible to create a custom widget with PyQt4 and use it in qt4-designer? (I was thinking about the coolness of such a feature some time ago, so now I'd like to know for sure...) -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A printer consists of three main parts: the case, the jammed paper tray and the blinking red light. - Dave Barry
pgpfQcDXbu1k4.pgp
Description: PGP signature
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
