Results 1 to 4 of 4

Thread: how to painting a circle on a picture

  1. #1
    Join Date
    Jul 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to painting a circle on a picture

    Dear All:

    Does any one know how to paint a circle under a picture without changing the picture, thank you.



    BRS,
    Alban

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to painting a circle on a picture

    Paint it on a copy. What do you do with that picture?

  3. #3
    Join Date
    Jul 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to painting a circle on a picture

    I hope to using qt to paint a circle under a picture, not copy on it.
    thank you



    BRS,
    Alban

  4. #4
    Join Date
    May 2008
    Posts
    42
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4

    Default Re: how to painting a circle on a picture

    Hi,

    You can draw the picture using QPainter.

    Qt Code:
    1. QPainter painter;
    2. painter.drawEllipse(10,10,10,10);
    3. painter.end();
    To copy to clipboard, switch view to plain text mode 

    Thanks and regards,
    Santhosh
    Last edited by jpn; 13th September 2008 at 13:07. Reason: missing [code] tags

  5. The following user says thank you to santhoshv84 for this useful post:

    cwnelatury (17th May 2009)

Similar Threads

  1. help regarding circle
    By jjbabu in forum Qt Programming
    Replies: 2
    Last Post: 20th September 2007, 10:23

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.