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

Combobox style error when using asynchronous loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.6.0 Alpha
    • Quick: Controls 1
    • None

    Description

      When asynchonously loading a component which contains a ComboBox{} element then the following error is produced: "file:///E:/qt/qt56dev/built/qml/QtQuick/Controls/ComboBox.qml:564: TypeError: Cannot read property '__dropDownStyle' of null". When "asynchronous: false" then the error is not produced. The error causes incorrect drawing of the ComboBox (with default and flat styles) and occurs randomly.

      Button {
      	onClicked: loader.source = "qrc:/qml/SamplePage.qml";
      }
      
      StackView {
      	id: stackView
      }
      
      
      Loader {
      	id: loader
      	asynchronous: true
      
      	onLoaded: {
      		stackView.push(loader.item);
      	}
      }
      
      
      Debug output:
      file:///E:/qt/qt56dev/built/qml/QtQuick/Controls/ComboBox.qml:564: TypeError: Cannot read property '__dropDownStyle' of null
      

      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
            DanielSt Peter Staab
            Votes:
            13 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes