Results 1 to 2 of 2

Thread: Drawing of Rectangle which is rounded from only two side

  1. #1
    Join Date
    Feb 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Drawing of Rectangle which is rounded from only two side

    I am trying to draw rectangle which should be rounded from borrom two side. i did manage to draw rectangle which is rounded from all four side using drawRoundedRect(QRect(-95, 2, 72, 48), 8, 8); . but i only wants two sides to be rounded.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Drawing of Rectangle which is rounded from only two side

    What would you like us to do with your statement?

    What else have you tried?
    How do you think you can construct your semi-rounded rectangle from parts?
    How do you think you might be able to draw only the lower half of a rectangle?
    What functions in QPainter might help?

Similar Threads

  1. Drawing a rectangle over Qlabel image
    By cheyanne in forum Newbie
    Replies: 16
    Last Post: 13th October 2011, 09:05
  2. Prevent QStyledItemDelegate from drawing focus rectangle
    By stefanadelbert in forum Qt Programming
    Replies: 4
    Last Post: 15th July 2010, 09:43
  3. Drawing a selection rectangle
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 4th April 2009, 15:47
  4. Replies: 2
    Last Post: 5th July 2008, 19:35
  5. Replies: 3
    Last Post: 4th June 2007, 09:51

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.