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

Expose QRect(F) API to QML

    XMLWordPrintable

Details

    Description

      That way you can call e.g. intersects() from QML, which is useful for hiding items outside of the view (since we still don't have a solution for QTBUG-67274).

      For example:

           visible: Qt.rect(x, y, width, height).intersects(viewportRect)
      

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes