[PyKDE] Problem with dynamic tooltip
stsao
stsao at eudoramail.com
Sat Dec 1 00:13:59 GMT 2001
Hi Donvan,
Thanks you very much! That indeed solved the problem. I was not aware
that this was for internal use only.
I really need to read the documentation more carefully :-)
Again, your help is much appreciated.
Sheng-Te Tsao
At 12:19 PM 11/30/2001 -0500, you wrote:
>On Wed, 28 Nov 2001, stsao wrote:
>
> > Hi,
> >
> > Thanks to Donovan, the problem has been resolved. Please see his reply
> > below.
> >
> > Donavan, were you able to see the other problem (background color color of
> > QMultiLineEdit not updated properly)?
>
>Part of the problem is that you're overriding a virtual method marked
>"for internal use only". If you want to do this, it's a good idea to call
>the base class version from your override.
>
>I get the same behaviour here as you.
>
>To fix it, you need to call the same method in the base class. I don't
>know off the top of my head how to do that in python, so my brute force
>fix is to make another method, mysetBackgroundColor.
>
>def mysetBackgroundColor(self, qColor):
> palette = self.palette()
> palette.setColor(QColorGroup.Base, qColor)
> self.setPalette(palette)
> self.setBackgroundColor(qColor)
>
>
>Since I can't find the "equivalent C++ code", I can't say whether or
>not it's really equivalent.
>
>--
>Donovan
Sheng-Te Tsao
Online Status:
<http://eudora.voicecontact.com/vc3/?tst%40eudoramail.com><http://eudora.voicecontact.com/vc3/?tst%40eudoramail.com><http://www.eudora.com/products/voicecontact/>
More information about the PyQt
mailing list