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

Refresh puppet if font is added

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • P2: Important
    • QDS 4.8
    • None
    • Assets Library, MCU support
    • None
    • QDS Berlin - 2025 Week 11/12
    • 8996c4a9d (qds/dev)

    Description

      If a font is added to QDS we do not reset the puppet. Therefore, the font is not loaded, and the puppet has to be refreshed to preview the new font properly.

      Refresh puppet:

      void FormEditorView::resetNodeInstanceView()
      {
          resetPuppet();
      }
      

      If resources go through the item asset library this function is called:

      void AssetsLibraryWidget::addResources(const QStringList &files, bool showDialog)
      

      There is also the resource handler. Adding any resource will always go through the handler registered for .ttf files.

      void DesignerActionManager::createDefaultAddResourceHandler()
      

      Currently only the asset library does add new fonts/assets using ::addResources.

      Attachments

        Issue Links

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

          Activity

            People

              ansemkiv Andrii Semkiv
              thohartm Thomas Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes