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

[Reg 3.9.0 -> 4.0.0] Command line arguments are no longer passed correctly to the QML Runtime

    XMLWordPrintable

Details

    Description

      Qt DS 4.0 now wraps command line arguments in double quotes, which breaks the QML Runtime behaviour.

       

      Steps to reproduce

      1. Load the attached project
      2. In the Run Settings, add "-S custom" (without quotes) as the "Command line arguments"
      3. Click "Run" (Ctrl+R)

      Expected outcomes (Qt DS 3.9.0)

      The application window shows the text, "Custom Selected Screen"

      The Application Output pane (Alt+3) shows:

      (Qt 5 kit)

      Starting C:\Qt\Tools\QtDesignStudio\qt5_design_studio_reduced_version\bin\qmlscene.exe -S custom C:/Test/QtDSSelector/content/App.qml...
      

      (Qt 6 kit)

      Starting C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin\qml.exe -S custom C:/Test/QtDSSelector/content/App.qml...
      

       

      Actual outcomes (Qt DS 4.0.0), Qt 5 kit

      The application window shows the text, "Default Screen"

      The Application Output pane (Alt+3) shows:

      Starting C:\Qt\Tools\QtDesignStudio\qt5_design_studio_reduced_version\bin\qmlscene.exe "-S custom" C:/Test/QtDSSelector/content/App.qml...
      

       

      Actual outcomes (Qt DS 4.0.0), Qt 6 kit

      The application window does not appear at all.

      The Application Output pane (Alt+3) shows:

      Starting C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin\qml2puppet-4.0.0.exe --qml-runtime "-S custom" C:/Test/QtDSSelector/content/App.qml...
      ...
      Error: Unknown option 'S custom'.
      

      Attachments

        1. qtds-args.png
          qtds-args.png
          30 kB
        2. QtDSSelector.zip
          2 kB
        3. Screenshot_4.png
          Screenshot_4.png
          44 kB
        4. Screenshot_5.png
          Screenshot_5.png
          47 kB

        Activity

          People

            tjenssen Tim Jenssen
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: