Results 1 to 3 of 3

Thread: fill this shape gradually

  1. #1
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default fill this shape gradually

    Hello all,

    I m using Qt 4.4.3 .

    I m developing an application in which I have to fill an the shape (see in attached image ) gradually as the application proceeds .


    I dont know how to draw this shapeis there any in-built functions (like drawRect,drawEllipse etc) for such shape.

    And do I need to use any filling algorithm???? Or can I achieve this using QBrush...

    Please help
    Attached Images Attached Images

  2. #2
    Join Date
    Jul 2007
    Location
    Bangalore, India
    Posts
    13
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: fill this shape gradually

    u can go through the manual for drawing the shapes, using the QPainter,
    http://doc.trolltech.com/4.3/q3painter.html

    and U can fill the shape with QBrush
    http://doc.trolltech.com/4.3/qbrush.html

  3. #3
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: fill this shape gradually

    Don't use q3painter. Thats left over from Qt3. Use the Qt4 QPainter or QGraphicsView.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

Similar Threads

  1. Fill mode using QPainter
    By lni in forum Qt Programming
    Replies: 7
    Last Post: 23rd March 2009, 18:03
  2. how to change backgroup color, button color and shape?
    By lzha022 in forum Qt Programming
    Replies: 10
    Last Post: 16th June 2008, 22:25
  3. QSvgRenderer and object's shape
    By Dusdan in forum Qt Programming
    Replies: 8
    Last Post: 3rd December 2007, 12:42
  4. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  5. How to Fill custom shape?
    By arunb in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2006, 14:08

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.