Results 1 to 2 of 2

Thread: How can i draw picture with Qpen

  1. #1
    Join Date
    Sep 2019
    Posts
    14
    Thanks
    7
    Qt products
    Qt5
    Platforms
    MacOS X

    Smile How can i draw picture with Qpen

    I have the picture thisstrip.png and How can I draw picture with free hand on it's?
    like thisstrip.png


  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How can i draw picture with Qpen

    Did you look at Qt's Scribble and Image Viewer examples? You should think about how you can combine the concepts in these two examples to capture mouse movement and use those to change pixels on a QImage or QPixmap.
    <=== 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.

Similar Threads

  1. Replies: 2
    Last Post: 8th February 2014, 10:00
  2. Replies: 3
    Last Post: 9th March 2012, 00:51
  3. draw picture and update
    By lzpmail in forum Qt Programming
    Replies: 4
    Last Post: 26th August 2011, 03:23
  4. How to create PIP (Picture In Picture) on QwebView
    By luckychap in forum Qt Programming
    Replies: 0
    Last Post: 18th July 2011, 13:47
  5. Raw Pixel Data to Image or Picture, to draw in a Widget
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 7th September 2010, 14:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.