Results 1 to 2 of 2

Thread: what are the historical reasons mentioned in the QRect class reference

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default what are the historical reasons mentioned in the QRect class reference

    In the QRect class reference it is mentioned that for historical reasons bottom() and right() return incorrect values.

    1. Does anyone know what these reasons are?
    2. Is there a reason that they must be maintained like this? I can file a bug to have this idiosyncracy fixed.
    Last edited by jamadagni; 14th April 2007 at 12:13. Reason: careless mistake
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: what are the historical reasons mentioned in the QRect class reference

    Quote Originally Posted by jamadagni View Post
    1. Does anyone know what these reasons are?
    An older version used to behave that way.

    2. Is there a reason that they must be maintained like this?
    Backward compatibility.

Similar Threads

  1. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  2. Strange error while using Q3Canvas
    By Kapil in forum Newbie
    Replies: 13
    Last Post: 15th June 2006, 19:36
  3. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.