Results 1 to 4 of 4

Thread: custom widget with separated circles/rings inside each other

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default custom widget with separated circles/rings inside each other

    as said in subject i would like to make custom widget with separated circles/rings inside each other so i can control every ring separately... it's probably good to show it by picture:


    i was thinking of using QPainter.drawPie for every single circle but don't know how to overlay them.. any ideas on the best approach to this problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: custom widget with separated circles/rings inside each other

    Can't you use the "Painter's Algorithm"? Or maybe I don't know what the problem is

  3. #3
    Join Date
    Mar 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default

    please, any url on this in documentation? i can find on net just some references from 1998.

    hm... seems that you propose just to draw most distant widgets first and the closest last... i'll try that... should do that before asking )
    Last edited by wysota; 17th March 2008 at 19:55. Reason: Posts merged

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: custom widget with separated circles/rings inside each other

    Quote Originally Posted by marcell View Post
    hm... seems that you propose just to draw most distant widgets first and the closest last...
    Yes, that's the Painter's Algorithm

    Oh, and you can check for hits in a reverse order.

Similar Threads

  1. resizing events of a custom widget in a layout
    By Rooster in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2008, 10:52
  2. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 14:06
  3. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38
  4. Simple custom widget won't size properly
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 13:12
  5. Custom tab widget question
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 11:17

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.