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

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

    XMLWordPrintable

Details

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

    Description

      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):

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes