Results 1 to 2 of 2

Thread: Hand Drawing in Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Hand Drawing in Qt

    Hi,

    How can I hand draw in qt (brush tool like gimp, paint, photoshop applications)?
    I want to draw some free form curves and then being able of selecting them with mouse.
    How can i do this?


    any suggestions?

    Thx in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Hand Drawing in Qt

    Use QGraphicsScene with item. Or if it is only pixel orientated, you can use a simple QWidget and use the mouse event handlers for drawing. In the documentation you find an example for the last one.

Similar Threads

  1. different library names for 'official' and hand-built Qt?
    By akos.maroy in forum Qt Programming
    Replies: 6
    Last Post: 21st July 2009, 02:13
  2. Adding QPushButton to *.ui file by hand
    By s410i in forum Qt Programming
    Replies: 3
    Last Post: 23rd June 2009, 13:08
  3. Hand Cursor by Style Sheet
    By smarinr in forum Qt Programming
    Replies: 1
    Last Post: 28th June 2008, 11:24
  4. QT Designer? Coding by hand?
    By lewis in forum Qt Tools
    Replies: 47
    Last Post: 2nd April 2007, 16:30
  5. Qt Designer or writing by hand
    By luf in forum Qt Tools
    Replies: 3
    Last Post: 12th March 2007, 12:31

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.