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

qmlls fails to provide auto-completion for formal parameters in signal handlers

XMLWordPrintable

    • 468fe4007 (dev), 68d571191 (6.8)

      Code

      import QtQuick
      import QtQuick.Controls.Basic
      
      Window {
          id: root
          width: 800
          height: 600
          visible: true
          color: combo.currentText
      
          ComboBox {
              id: combo
              model: ["red", "green", "blue"]
          }
      
          Component.onCompleted: console.log(root.color)
          onColorChanged: (col) => console.log(col)
      }
      

       

      Outcomes
      (Expected) Typing a dot at the end of the first console.log() produces a list that is related to the color type:

       

      (Not Expected) Typing a dot at the end of the second console.log() produces a list that is not related to the color type (Qt 6.7.2) or no list at all (Qt 6.8.0-beta2):

        For Gerrit Dashboard: QTBUG-127458
        # Subject Branch Project Status CR V

            sami.shalayel Sami Shalayel
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes