Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128324

QML embedding examples reference long relative path of Qt installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • 6.8.0 RC
    • 6.8.0 Beta3
    • Examples and Demos
    • None
    • Android

      The QML embedding examples having two parts, an Android Studio project and a Qt project, the former references the Qt installation as a relative path that has a long chain, for example:

      QtBuild {
      ...
          qtPath = file("../../../../../../../6.8.0")
      ...
      }

      This can have two issues, the first is that the Qt version is hardcoded in the example, and the second is the long chain of relative path. This is not ideal especially for example projects which should be exemplary.

      For more details, there was a discussion in Gerrit about this under https://codereview.qt-project.org/c/qt/qtdeclarative/+/581569/3/examples/platforms/android/models/abstractlistmodel_kotlin/app/build.gradle.kts

      We should aim at least to fix the hard-coded version, we could have CMake replace at least that part during installation.

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

            soarmin Soheil Armin
            assam Assam Boudjelthia
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes