Results 1 to 3 of 3

Thread: Tracing Drawings

  1. #1
    Join Date
    Sep 2008
    Posts
    18
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Tracing Drawings

    If you created a drawing, and you wanted to trace (highlight it with a different color) parts of it at different times and illustrate this to the user, how would you go about doing that?

    For example, if you had a blue circle and you wanted to trace 1/4 of its circumference with red. You wanted the 1/4 to be traced with red so that the user sees it. So the result would be a circle that is 3/4 blue and 1/4 red.

    Then the user could click a continue button to see the tracing of the rest of the circle. Then the whole circle would be red.

  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: Tracing Drawings

    I understand you are asking about the graphics view framework... In that case activate hover events for your item and implement the glow in the paint routine.

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

    RY (2nd October 2008)

  4. #3
    Join Date
    Sep 2008
    Posts
    18
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: Tracing Drawings

    Thanks for your speedy reply!

    What class is that under? Is it under QGraphicsItem?

    If it's not too much trouble, could you give me an example code?

Similar Threads

  1. Back tracing asserts with gdb
    By ucomesdag in forum Qt Programming
    Replies: 8
    Last Post: 30th July 2007, 21:59
  2. Tracing signals.
    By johnny_sparx in forum Qt Programming
    Replies: 11
    Last Post: 13th April 2006, 23:18
  3. logging and tracing in Qt
    By Artschi in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2006, 20:10

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.