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

Newly created QDS project has errors in QML document Constants.qml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • QDS 4.2
    • 2D View
    • None
    • Ubuntu 22.04, QDS 4.2.0
    • Linux/X11

    Description

      Steps to reproduce:

      Create new project, name it, put dimensions at 1440 x 1080. (to match an image size)

      Got to "Projects" tab, and click on Constants.qml in Imports.

      error appears.

       

      The app runs, even if there is the error.

       

      QML inserted below

      ---------------------------------------------------

      pragma Singleton
      import QtQuick 6.5
      import QtQuick.Studio.Application

      QtObject {
          readonly property int width: 1080
          readonly property int height: 1440

          property string relativeFontDirectory: "fonts"

          /* Edit this comment to add your custom font */
          readonly property font font: Qt.font(

      {                                              family: Qt.application.font.family,                                              pixelSize: Qt.application.font.pixelSize                                          }

      )
          readonly property font largeFont: Qt.font(

      {                                                   family: Qt.application.font.family,                                                   pixelSize: Qt.application.font.pixelSize * 1.6                                               }

      )

          readonly property color backgroundColor: "#c2c2c2"

          property StudioApplication application: StudioApplication

      {         fontPath: Qt.resolvedUrl("../../content/" + relativeFontDirectory)     }

      }

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            williamsmith William Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes