Results 1 to 2 of 2

Thread: How can i draw picture with Qpen

  1. #1
    Join Date
    Sep 2019
    Qt products
    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
    Alameda, CA, USA
    Thanked 817 Times in 806 Posts
    Qt products
    Windows Android

    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, 09:00
  2. Replies: 3
    Last Post: 8th March 2012, 23:51
  3. draw picture and update
    By lzpmail in forum Qt Programming
    Replies: 4
    Last Post: 26th August 2011, 02:23
  4. How to create PIP (Picture In Picture) on QwebView
    By luckychap in forum Qt Programming
    Replies: 0
    Last Post: 18th July 2011, 12: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, 13:15

Tags for this Thread


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.