Krishnacins
19th May 2006, 15:21
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
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