Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.13.2
-
None
-
ba1e880fbb2aacb550980bc2de35246bdcc38481 (qt/qtbase/5.14)
Description
After launching the test program (main.cpp), press B. Notice that there is no 1-pixel gap below the blue rectangle even through I asked for a 1-pixel margin (bottom.png). Now press T. Notice that there is now a 1-pixel gap above the red rectangle (top.png).
I'm fairly sure (though not certain) that fixing this bug involves inserting + 1 on this line and this line.
The bug is probably due to this:
QRect rect; rect.bottomRight() - rect.topLeft() != QPoint{rect.width(), rect.height()};
...which has been the cause of numerous bugs in my own code.
Attachments
For Gerrit Dashboard: QTBUG-80093 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
281948,1 | QScrollArea: take margin into account when adjusting vertical position | 5.14 | qt/qtbase | Status: ABANDONED | -1 | 0 |
284127,5 | QScrollArea: fix off-by-one error in ensureWidgetVisible | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |