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

Combobox style error when using asynchronous loader

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.6.0 Alpha
    • Fix Version/s: None
    • Component/s: Quick: Controls 1
    • Labels:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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