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

Recent Projects snapshot images have poor quality

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QDS 3.3
    • QDS 3.2
    • Welcome Page
    • None
    • 4bd71ebf6a (qt-creator/qt-creator/7.0) 4bd71ebf6a (qt-creator/qt-creator/master) 4bd71ebf6a (qt-creator/qt-creator/qds-3.3) 4bd71ebf6a (qt-creator/tqtc-qt-creator/7.0)
    • QDS Berlin - 2022 Week 13/14, QDS Berlin - 2022 Week 15/16

    Description

      Snapshot images used for Recent Projects view are not good quality.
      See the screenshot.

      In the capturenodeinstance the size is hardcoded with 150px.
      
      QSize previewImageSize = rootNodeInstance.boundingRect().size().toSize();
      if (previewImageSize.isEmpty())
      previewImageSize = {150, 150};
      
      
      
      if (previewImageSize.width() > 150 || previewImageSize.height() > 150)
      previewImageSize.scale({150, 150}, Qt::KeepAspectRatio);
      
      QImage previewImage = rootNodeInstance.renderPreviewImage(previewImageSize);
      
      return previewImage;
      

      This function should use

      m_previewSize and "previewSize@Internal" as the states previews.

      The plumbing should already be in place since Qt5CaptureImageNodeInstanceServer : public Qt5PreviewNodeInstanceServer.

      We should keep the 150px default to avoid breaking UI and use "previewSize@Internal" for the previews to increase the thumbnail size.

      Attachments

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

        Activity

          People

            bubke Marco Bubke
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes