[PyKDE] PyQt4: Promoting a custom widget in qt4 designer
Sebastian Kügler
sebas at kde.org
Wed Dec 6 12:37:39 GMT 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061204/b80cbd26/attachment.bin
More information about the PyQt
mailing list