Results 1 to 2 of 2

Thread: How QRectF::adjusted() works

  1. #1
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How QRectF::adjusted() works

    My custom graphics item has (0,-60 60x60) boundingRect. When I adjust the coordinates with

    Qt Code:
    1. rect.adjusted(-5,-5,5,5)
    To copy to clipboard, switch view to plain text mode 

    new boundingRect returns (-5,-65,70x70). I read the documentation here and I think boundingRect should return (-5,-65,65x65)
    Do I misunderstand the doc?

  2. #2
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How QRectF::adjusted() works

    I find the answer here

Similar Threads

  1. height property not adjusted when QTreeView item selected
    By hubbobubbo in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2010, 15:38
  2. Rotate a QRectF
    By whitefurrows in forum Qt Programming
    Replies: 5
    Last Post: 15th July 2009, 15:33
  3. Error in QRectF::intersects
    By lni in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2009, 17:24
  4. Replies: 1
    Last Post: 21st September 2006, 10:37
  5. QRectF and drawText
    By aronsson in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2006, 16:05

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.