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

Make object overrides more optimal

XMLWordPrintable

      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.

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

            qtqmlteam Qt Qml Team User
            mbrasser Michael Brasser
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes