[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] subclassing widgets contained in a QtDesigner form
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2002-10-25 7:37:27
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 25 October 2002 01:35, Michael Ferraro wrote:
> I would like to sub-class a widget (QLabel for example) that I have
> placed (sized, colored, etc.) in QtDesigner in order to overide the
> mouseDoubleClickedEvent() .
>
> I realize I could modify the class generated by pyuic and
> change the "QLabel" to a "MyLabel" for each occurance
> but did not want to modify the files generated by pyuic
>
> I was wondering if there is some idomatic way of copying all the
> properties of a instance into a new one.without explicitly assigning
> them.
>
You can also create your class and add it as a custom widget to
Qt Designer -- then you can design directly with your MyLabel.
- --
Boudewijn Rempt | http://www.valdyas.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9uPS5daCcgCmN5d8RAtqtAKDjHCWmsNRVepNdizsj1Ip9tJVl0ACgy82u
cKE9KiPkoE3BaI3NDHv8F0o=
=p7Ub
-----END PGP SIGNATURE-----
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic