Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29061

Reformatting QML files deletes type annotations

XMLWordPrintable

    • Linux/X11, Windows
    • ffcbbecf2 (12.0)
    • QDS Berlin - 2023 Week 23/24

      Type annotations are deleted when QML files are reformatted using Tools menu → QML/JS → Reformat file.

      Steps for reproduction:

      To any QML file, add an arbitrary function whose arguments have type annotations.
      For example:

      function foo(i: int)
      {
          console.log( i )
      }
      

      Reformat the file using the above command.

      : int will be deleted from the function.

      The same issue occurs in Qt Design Studio 4.

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

            semih.yavuz Semih Yavuz
            indi Indivara Weerasuriya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes