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

Add function to TestCase that allows finding a visual or QObject child recursively based on a given callback

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Testing: QuickTest
    • None

      This would allow e.g. finding an object of a specific type, like an animation:

      let animation = findChildIf(control, (child) => { return child as Animation })
      verify(animation)
      

      Or all animations:

      let animations = findChildrenIf(control, (child) => { return child as Animation })
      verify(animations)
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes