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

QQuickItem::contains return true even for points outside the item rect

    XMLWordPrintable

Details

    • 37540467ca516c3732bd276f49e27db824b4ea0b (qt/qtdeclarative/wip/qtquickcontrols2)

    Description

      Given an item at (0,0) and width/height (300,300) its rectangle should span from 0 to 299 (given that 0 is inclusive)
      I should expect item.contains(300,300) to return false.
      https://code.woboq.org/qt5/qtdeclarative/src/quick/items/qquickitem.cpp.html#_ZNK10QQuickItem8containsERK7QPointF
      shows that the points outside the rect are considered

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            cuke Filippo Cucchetto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes