Results 1 to 11 of 11

Thread: Diagram Scene Example - two overlapping ellipses

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,348
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Diagram Scene Example - two overlapping ellipses

    I doubt there is anything you can do if you must convert the path to a polygon. It is this conversion that is adding the extra line, as the docs say will happen. In order to create a single, complete polygon from two independent ellipses, it has to connect them.

    You could easily solve this problem if you studied the Diagram Scene example and modified it to accept items derived from QAbstractGraphicsShapeItem instead of limiting it to polygon items only. Then you could add your path item without being forced to convert it to a polygon.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    dougluna (28th April 2017)

Similar Threads

  1. Re-engineering the Diagram Scene Example - Issues
    By sajis997 in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2012, 11:38
  2. diagram scene example - intersection test
    By sajis997 in forum Newbie
    Replies: 12
    Last Post: 14th September 2011, 18:48
  3. mouse selection of overlapping ellipses
    By imagyne in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2011, 09:59
  4. drawing series of rotated ellipses
    By qtn00b in forum Newbie
    Replies: 1
    Last Post: 17th December 2009, 02:51
  5. Extending the Diagram Scene Example
    By dosto.walla in forum Newbie
    Replies: 1
    Last Post: 7th October 2008, 19:02

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.