Results 1 to 4 of 4

Thread: autoMask() & setAutoMask() r not part of Qt4????

  1. #1
    Join Date
    Mar 2006
    Posts
    20
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default 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:aintEvent( 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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default 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.

  3. #3
    Join Date
    Mar 2006
    Posts
    20
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default 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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.