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

Generated QML imported from Bridge doesn't behave properly

    XMLWordPrintable

Details

    • Windows

    Description

      Here's the QDS version I use.

       

      I attached the project for reproducing the issue.
      There, you can also find image_fill.fig and image_fill.qtbridge.

      The expected output is like this. A dog image cropped inside ellipse and a text.

       

      Here's the output of the QDS. As you can see in the LivePreview window on the left, nothing is shown.

      I think the issue is in line 8, where the color of the root rectangle(frame_1) is set as transparent.
      I guess this is something we as Qt must adapt to how things work in Figma and treat Frame in this case as an opaque object.

      About the sentence above, it seems to be incorrect and the issue may lie in a different place.
      I just changed the color of the Frame from "Pass through" to "Normal" and exported it with Qt Bridge.
      Then after I imported it to QDS, I got this result. where the launched app behaves fine.

      The weird thing is, the output QML files are exactly the same with the one with "pass through" and the one with "Normal".
      I attached the "before.txt" and "after.txt" respectively for the concerned QML files.
      I also attached the project "mask_image_after_changing_it_to_Normal.zip." You can find the image_fill_Frame_color_as_Normal.qtbridge, image_fill_Frame_color_as_Normal.fig and Masks.qmlproject for seeing what's happening.

      Attachments

        1. after.txt
          1 kB
        2. before.txt
          1 kB
        3. image-2023-07-14-11-14-48-235.png
          image-2023-07-14-11-14-48-235.png
          71 kB
        4. image-2023-07-14-11-16-32-769.png
          image-2023-07-14-11-16-32-769.png
          711 kB
        5. image-2023-07-14-11-17-26-931.png
          image-2023-07-14-11-17-26-931.png
          438 kB
        6. image-2023-07-14-11-26-25-982.png
          image-2023-07-14-11-26-25-982.png
          794 kB
        7. mask_image_after_changing_it_to_Normal.zip
          16.25 MB
        8. mask_image.zip
          14.46 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            algerman Aleksei German
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes