Results 1 to 3 of 3

Thread: Paint circle dot in QPen

  1. #1
    Join Date
    Aug 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Paint circle dot in QPen

    Hello. All in title :-) How i can draw circle dot (QPen) like this http://joxi.ru/wRmzgoH0JDEn2O

    if i set QPen style to Qt:otLine and cap style to Qt::FlatCap, QPen draw rectangle dot, if i set cap style to Qt::RoundCap, his dont draw round rect, not circle.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Paint circle dot in QPen

    QPinter::drawEllipse()?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Aug 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Paint circle dot in QPen

    Yep, but i think QPen can draw dot line :-)

Similar Threads

  1. QPen has no effect
    By timmu in forum Qt Programming
    Replies: 1
    Last Post: 3rd January 2013, 12:39
  2. QgraphicsSimpleTextItem, QPen outline
    By user14921 in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2011, 16:07
  3. Strange behaviour with QPen
    By franco.amato in forum Qt Programming
    Replies: 4
    Last Post: 19th January 2010, 05:51
  4. Diff between QBrush and QPen
    By wagmare in forum Qt Programming
    Replies: 5
    Last Post: 16th February 2009, 14:47
  5. Problems with QPen
    By prosass in forum Newbie
    Replies: 3
    Last Post: 13th March 2007, 15:54

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.