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

mapToGlobal can crash

    XMLWordPrintable

Details

    • f9686bc68696ad1e99a0587f15d05300d003d990

    Description

      From C++

      QQuickItem *myItem = new QQuickItem;
      myItem->mapToGlobal(QPointF(0,0));
      

      From QML

      import QtQuick 2.0
      
      Item {
          width: 400
          height: 400
      
          Component {
              id: rectComponent
              Rectangle {}
          }
      
          Component.onCompleted:  {
              var obj = rectComponent.createObject(null);
              obj.mapToGlobal(0,0)
          }
      }

      Attachments

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

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes