Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134482

QRegion::contains(QRect) does not return if the region contains the rect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8
    • GUI: Other
    • None
    • All

      While the documentation does say that `QRegion::contains(QRect)` tests for overlap, that does not make the API any less error prone, and noone would ever expect to need to read the documentation for such a seemingly completely straight forward method!

      In KWin I'm now using `(region & rect) == rect` as the workaround to this problem, but this method should really be deprecated and replaced with `intersects(QRect)`.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            zamundaaa Xaver Hugl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes