autoMask() & setAutoMask() r not part of Qt4????
Hi,
autoMask() & setAutoMask() are not the part of Qt4.1.2 (fedora c2)...
so Qt4 is showing ERROR
Plz tell what should i do........
these examples r from examaples of Qt ( analog clock)....
im using it as.........
void AnalogClock::paintEvent( QPaintEvent * )
{
if ( autoMask() )
return;
QPainter paint( this );
paint.setBrush( colorGroup().foreground() );
drawClock( &paint );
}
void AnalogClock::setAutoMask(bool b)
{
if (b)
setBackgroundMode( PaletteForeground );
else
setBackgroundMode( PaletteBackground );
QWidget::setAutoMask(b);
}
Thanks
Krishna
Re: autoMask() & setAutoMask() r not part of Qt4????
Quote:
Originally Posted by Krishnacins
these examples r from examaples of Qt ( analog clock)....
That example is from Qt 3, not Qt 4.
Quote:
Originally Posted by Krishnacins
what should i do........
Implement that behavior yourself.
Re: autoMask() & setAutoMask() r not part of Qt4????
I know this example of Qt3 I want to use it with Qt4.............
I want solution dear.......
Thanks
Krishna
Re: autoMask() & setAutoMask() r not part of Qt4????
Quote:
Originally Posted by Krishnacins
I know this example of Qt3 I want to use it with Qt4...
You can't.
Quote:
Originally Posted by Krishnacins
I want solution dear...
Implement that behavior yourself.