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

qmlls erases user code when updating implicitly defined signal handlers

    XMLWordPrintable

Details

    • 0835b5d13 (dev), cb16d776e (6.8), 0b7216a08 (6.7), ea6d706e6 (dev), 62e0c1005 (6.8), b842658d0 (6.7)

    Description

      Before clicking the lightbulb

      Warning:

      no matching signal found for handler "onWidthChanged": Implicitly defining onWidthChanged as signal handler in Connections is deprecated. Create a function instead.
      

       

      After clicking the lightbulb

      Error:

      Unexpected token `...'
      

       

      Expected outcomes
      qmlls should place the existing code – `console.log("New width:", root.width)` - inside the function block rather than erasing it

       

      Attachments

        Issue Links

          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:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: