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

Details

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

    Description

      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)
      

      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
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes