Results 1 to 3 of 3

Thread: Fill ellipse in reverse orer (from diameter to center).

  1. #1
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Fill ellipse in reverse orer (from diameter to center).

    Hi Friends,

    I am implementing some masking feachers for the ellipse. In there I have to implement masking in the ellipse from diameter to center based on the index. I am using QGraphicsScene method "addEllipse(...)" to add the ellipse (As I have some requirements so that QGraphicsView and QGraphicsScene are necessary for me).

    So far I have incremented the pen size of the ellipse to get the same behavior but I am getting some deviation from the diameter.

    Is there any better solution to do this, or how can I remove such deviation from the diameter.

    I have attached the images for the reference and comparison.
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fill ellipse in reverse orer (from diameter to center).

    You might as well play with QRadialGradient

  3. The following user says thank you to aamer4yu for this useful post:

    pastispast (2nd August 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fill ellipse in reverse orer (from diameter to center).

    Hi aamer...thanks for the suggestion...I think this is the better approach to do this...

    once again thanks for the reply...

Similar Threads

  1. Reverse engineering tools
    By vvbkumar in forum General Programming
    Replies: 4
    Last Post: 29th September 2010, 17:48
  2. How to reverse play a video with phonon
    By Markus in forum Qt Programming
    Replies: 1
    Last Post: 19th July 2010, 06:48
  3. Ellipse and rotation
    By navi1084 in forum Qt Programming
    Replies: 3
    Last Post: 9th March 2009, 10:43
  4. Reverse engineering of ui-file
    By wallyqt in forum Qt Tools
    Replies: 5
    Last Post: 18th November 2007, 22:11
  5. Reverse Order on QStringList slow...?
    By patrik08 in forum Qt Programming
    Replies: 24
    Last Post: 21st February 2007, 09:32

Tags for this Thread

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.