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

Command line arguments aren't available in main function on Symbian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.4
    • 4.7.1
    • None
    • None
    • N8, Qt 4.7.1
    • a601a45f7fbff6df2b39990d0e1dbd00542b9819,ff5a772b77cd52099ce7000a348d21e7c2fe3f2e

    Description

      When launching Qt application from WRT widget command line arguments aren't available in main function.

      var criteria = new Object();
      criteria.ApplicationID = "s60uid://" + uid;
      criteria.CmdLine = params;  
       
      var result = serviceObj.IAppManager.LaunchApp(criteria);
      

      However command line arguments are available in CEikAppUi class ProcessCommandParametersL method but that requires Symbian code. I think these should be made available for Qt application without needing Symbian native code.

      Attached workaround code that accesses command line arguments using ProcessCommandParametersL method.

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            ahvenlam Antti Ahvenlampi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes