Results 1 to 17 of 17

Thread: QRect without Border

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    40
    Thanks
    6
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QRect without Border

    Quote Originally Posted by yeye_olive View Post
    Again, the doc for QPen says it all: "A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the transformation set on the painter."

    Qt's documentation is great. I suggest you read the whole documentation of the classes you use before posting here. That is what I just did; I had never drawn a rectangle in a QPainter but I found the answers to your questions there.
    Yeah I have been reading the document, but partially.
    This means there is no way to do so.
    Right?

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QRect without Border

    Hi,

    Are you sure that now have you readed all QPen Doc?
    It tooks me only 30 seconds to discover that the pen have a style, and you can set it to "no pen".
    Òscar Llarch i Galán

Similar Threads

  1. Replies: 10
    Last Post: 9th September 2013, 15:29
  2. Replies: 2
    Last Post: 21st March 2012, 14:30
  3. QRect with border?
    By BettaUseYoNikes in forum Qt Programming
    Replies: 1
    Last Post: 24th August 2011, 00:56
  4. Marching Ant effect at the border of QRect
    By syclopse in forum Qt Programming
    Replies: 4
    Last Post: 18th April 2011, 05:28
  5. Cannot use QRect::setWidth
    By WilliamSpiderWeb in forum Newbie
    Replies: 3
    Last Post: 4th March 2011, 15:45

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
  •  
Qt is a trademark of The Qt Company.