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

Providing a default StackLayout when an invalid currentIndex is selected

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.3.0
    • Quick: Layouts
    • All

      In a project I am working on, I have bound a StackLayout's currentIndex to an item that displays the "tabs" to show in the StackLayout. To get the switching to occur, I bind the tab selector item's currentIndex. However, if there are more "tabs" in the tab selector item than there are items in the StackLayout, a blank view gets shown.

      It would be nice if a default Item could be defined, that is shown when the currentIndex is greater than zero, but doesn't map to an existing item in the StackLayout.

        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
            kkyzivat Keith Kyzivat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes