Results 1 to 4 of 4

Thread: how to Draw Line In Graphic View?

  1. #1
    Join Date
    Jun 2016
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows Android

    Exclamation how to Draw Line In Graphic View?

    Hello,
    i have a GraphicView in my application that this graphicview have a picture
    and i want to draw line on the picture and erase the line,or reload pic to erase lines
    i read The QgraphicView & Qpaint Class Documentation But i dont know how
    i do must that!
    What i must do?
    Can any buddy Write a simple and sample code for me?
    Thanks

  2. #2
    Join Date
    Nov 2011
    Location
    Bangalore
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: how to Draw Line In Graphic View?

    Checkout the "Diagramscene" example available in Qt. This example shows how to draw a line using mouse.
    Make everything Simple yet Powerful

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

    M4RZB4Ni (2nd June 2016)

  4. #3
    Join Date
    Jun 2016
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: how to Draw Line In Graphic View?

    Thanks but That Example do not tech how to draw line
    just show how to draw shape!

  5. #4
    Join Date
    Nov 2011
    Location
    Bangalore
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: how to Draw Line In Graphic View?

    Make everything Simple yet Powerful

Similar Threads

  1. Graphic view and ProxyWidget ... signal problem?
    By giordi in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2014, 10:35
  2. Draw Bar chart in Graphic view
    By vinithr in forum Newbie
    Replies: 8
    Last Post: 7th November 2013, 04:40
  3. Graphic view for scatter plot
    By hamid ghous in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2009, 15:27
  4. File icon to graphic view
    By been_1990 in forum Qt Programming
    Replies: 10
    Last Post: 1st June 2009, 15:53
  5. How to restrict graphic items in view
    By aamer4yu in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2006, 07:46

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
  •  
Qt is a trademark of The Qt Company.