Results 1 to 2 of 2

Thread: difference of QRect and QRectF

  1. #1
    Join Date
    Jan 2010
    Posts
    18
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default difference of QRect and QRectF

    hi all

    what is the difference between QRect and QRectF ?

  2. #2
    Join Date
    Apr 2009
    Posts
    36
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: difference of QRect and QRectF

    QRect uses integer precision and QRectF uses floating point precision. In fact, there are several other classes with this similar setup: QLine/QLineF, QPoint/QPointF, etc.

  3. The following user says thank you to bmhautz for this useful post:

    gbmtoday (14th January 2010)

Similar Threads

  1. Rotate a QRectF
    By whitefurrows in forum Qt Programming
    Replies: 5
    Last Post: 15th July 2009, 15:33
  2. Error in QRectF::intersects
    By lni in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2009, 17:24
  3. Replies: 11
    Last Post: 17th January 2009, 09:06
  4. Move QCompleter on QRect x,y
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2007, 10:33
  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.