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

TabView's Tab asynchronous loading causing TableView Title missing

    XMLWordPrintable

Details

    Description

      Running the following code:

      import QtQuick 2.2
      import QtQuick.Window 2.1
      import QtQuick.Controls 1.2
      
      Window {
          visible: true
          width: 800
          height: 600
          TabView {
              id: stack
             Tab{
                  id: view
                  title: "Red"
                  Rectangle { color: "red" }
                  //asynchronous: true
              }
              Tab {
                  id: tvview
                  title: "TableView"
                  asynchronous: true
                  TableView {
                     TableViewColumn{ role: "title"  ; title: "Title" ; width: 100 }
                     TableViewColumn{ role: "author" ; title: "Author" ; width: 200 }
                     model: ListModel {
                         id: libraryModel
                         ListElement{ title: "A Masterpiece" ; author: "Gabriel" }
                         ListElement{ title: "Brilliance"    ; author: "Jens" }
                         ListElement{ title: "Outstanding"   ; author: "Frederik" }
                      }
                  }
              }
          }
      }
      

      Results in:

      Instead of:

      If

      asynchronous: true

      is not used it gives the correct result.

      Attachments

        Activity

          People

            jolind Jorgen Lind
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: