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

Providing a default StackLayout when an invalid currentIndex is selected

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes