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

ComboBox send warning message when model is set to 0 &

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.2.0 Alpha
    • Quick: Controls 1
    • None
    • Qt 5.2.0 beta1 msvc2012 x86 2013-10-17 09-50-35-103
    • 11873dd28fc8ee2c756b79116f58eadf9f81d106

    Description

      QtQuick ComboBox show

      ComboBox.qml:339:35: Unable to assign null to QString

      When its pointed to a QSqlQueryModel it shows following error message

      ComboBox.qml:470: TypeError: Cannot read property 'constructor' of undefined

      Sample code

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      ApplicationWindow {
          width: 640
          height: 480
          ComboBox {
              anchors.centerIn: parent
              model: 0
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bachewii Jens
            d_dasun Dasun Weerasinghe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes