Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-7701

Allowed to give property names that do not work and cause errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • QDS 3.7
    • QDS 3.7
    • Property View
    • None
    • QDS Berlin - 2022 Week 37/38

    Description

      Documentation says that "Property names must begin with a lower case letter and can only contain letters, numbers, and underscores. JavaScript reserved words are not valid property names."

      Atm user can try giving empty names, names that start with capital letter, names with special characters etc. Steps to reproduce:

      1. Create a new property in Properties -> User added properties -> +
      2. Give property an empty name
      3. -> error shown as in attached picture, does not show any useful information to user of what went wrong
      4. Give property a name with space
      5. -> same error shown
      6. Give name that includes ?!., or a javascript reserved word "public"
      7. -> "Error rewriting document" error shown
      8.  Give property a name "MyProperty"
      9. -> No error shown, but when trying to run Live preview it does not work and application output shows ...UntitledProject105/content/Screen01.ui.qml:78:22: Property names cannot begin with an upper case letter

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            tanja_remes Tanja Remes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes