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

Newly added type gets NULL annotationTraits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • QDS 4.8
    • Project Storage
    • None

    Description

      If you create a new type under project content folder, it gets NULL for annotationTraits column in types table. However, if the same type is present when the database is initially created for the project, annotationTraits column gets the default value (33727106) .

      To repro:

      • Enable database writing to disk (QDS_STORE_PROJECTSTORAGE_IN_PROJECT=1)
      • Start QDS and create an empty project
      • Copy the attached MyRectangle13.ui.qml into project content folder (Alternatively you can add a Rectangle to the scene from item library and use "Create Component" context menu option on it in navigator to to create a new type in project content folder)
      • Close QDS.
      • Check the database types table. MyRectangle13.ui.qml type has NULL in the annotationTraits column (which is incorrect).
      • Delete projectstorage.db from the project folder
      • Start QDS and open the same project
      • Close QDS after project loads
      • Check the database types table. MyRectangle13.ui.qml type has value 33727106 in the annotationTraits column (which is correct).

      Having incorrect annotationTraits causes various issues such as nodes of the type not being visible in 2D view and not being able to drag the item from item library into navigator or 2D view.

      Attachments

        Issue Links

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

          Activity

            People

              bubke Marco Bubke
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes