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

If the JSON data has colorCode data in it, Model Editor does not parse it to be used with the color editor popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • QDS 4.4.1
    • Collection Editor
    • None

      Issue found:

      • If JSON data has been manually changed to have a colorCode and it is read into the Model Editor, the user can't use the color popup for editing the information. Changing the datatype of the column clears cells.
      • See the video: ColorCodeIsNotRecognizedAsColorDataType.mp4
      • Snapshot: 35
      • OS: Mac OS/ M1

      How to reproduce

      1. Create a project
      2. Open models.json
      3. Add in the following code:
          "ListModel_1": [
              {
                  "colorCode": "#ff0000",
                  "name": "Red"
              },
              {
                  "colorCode": "#00ff00",
                  "name": "Green"
              },
              {
                  "colorCode": "#0000ff",
                  "name": "Blue"
              },
              {
                  "colorCode": "#ffffff",
                  "name": "White"
              }
          ] 
      1. Open Model editor
      2. Try changing color values, you notice that it handles values as strings, not as color codes. The same happens if you export a model which has been created using color wheel, and then import it again into the list of models - the colorCode is not recognized as a data type.

      How it is expected to work

      • The user can change values in JSON code. If the datatype is correct, it should register the column to use color dialog when clicking on cells.

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

            ali.kianian Ali Kianian
            hpaulaha Heikki Paulaharju
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes