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

Make object overrides more optimal

    XMLWordPrintable

Details

    Description

      The following example will instantiate both the IntValidator and the RegExpValidator when running OverrideTest:

      // MyText.qml
      import QtQuick 2.0
      TextInput {
          validator: IntValidator {}
      }
      
      // OverrideTest.qml
      import QtQuick 2.0
      MyText {
          validator: RegExpValidator {}
      }
      

      From a performance perspective, it would be nice if we didn't have to ever pay the cost of constructing the IntValidator.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mbrasser Michael Brasser
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes