Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-597

qStr("%1").arg(xxx) fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Moved
    • P1: Critical
    • None
    • 2.0.0
    • General
    • None

    Description

      Using e.g. qsTr("%1").arg(systemInfo.prettyProductName)

      in an ifw script results in a javascript exception:

      ---------------------------
      Error
      ---------------------------
      Exception while loading the component script '://metadata//root/installscript.qs'. (TypeError: Property 'arg' of object %1 is not a function)
      ---------------------------
      OK
      ---------------------------

      The same logic in a .qml file works fine.

      Attachments

        Issue Links

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

          Activity

            People

              installerteam Installer Team
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes