×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    43

    couldn't set QProcess to pass extra parameters for BrowserNG.exe

    hi, i couldn't get symbian/s60's default BrowserNG.exe to start a URL when it launched.

    typically i did something like this.

    Code:
    QStringList arguments;
    arguments << "http//www.google.com";
    process.start("BrowserNG.exe", arguments);

    It launches the browser but it doesn't load the extra parameter which is the URL.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe


  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    43

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    but that's pure symbian c++, you can't call it in Qt symbian without some linking hoopla, can you?

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    Try passing the arguments as a part of the name, separated by blanks.

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    Of course, from the page Danlil referenced:

    Start/Continue the browser specifying a URL => Parameter = “4”+” <Space>“+”<Url>”

  6. #6
    Registered User
    Join Date
    May 2011
    Posts
    3

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    Could you give us concrete example?

    QStringList args;
    args << ("4 http://www.yahoo.com/");
    process.start("BrowserNG", args);

    .. just doesnt work.

  7. #7
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    Code:
    QString args;
    args << "4";
    args << "http://www.yahoo.com/";
    process.start("BrowserNG", args);
    or
    Code:
    process.start("BrowserNG 4 http://www.yahoo.com/");

  8. #8
    Registered User
    Join Date
    May 2011
    Posts
    3

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    Well,it doesnt work either,danhicksbyron,argument "http://www.yahoo.com/" is completely ignored,no matter which version I used,BrowserNG always opens on homepage or bookmarks.
    I tried it with new Nokia C7 (latest version 014.002 used),pumped up with latest Qt 4.7.3,BrowserNG started always successfully but never saw http://www.yahoo.com...
    QString args; had to be changed to QStringList args; of course , I had compilations errors.
    You didnt test it much before submitting,danhicksbyron,did you?

    Any new ideas?All help will be much appreciated...

    Thanks

  9. #9
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    No, I didn't test before submitting. Are you sure that BrowserNG honors the parameters that you want to pass to it?

  10. #10
    Registered User
    Join Date
    May 2011
    Posts
    3

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    @ danhicksbyron

    OK,I am not sure about this parameters honoring in BrowserNG since debugging on device is not easy task ( you frequently just get "can not set hardware break point"),so I am really not sure.
    Worst thing is that I can not get any help from SDK documentation or something so I did a lot of hocus-pocus with arguments switching,still no luck...
    Is it actually possible to pass URL as argument to a BrowserNG?

  11. #11
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: couldn't set QProcess to pass extra parameters for BrowserNG.exe

    I could not find any documentation on BrowserNG, as implemented on Symbian, so I have no idea what parameters it might accept. It's not clear that BrowserNG.exe is the same browser referenced in the wiki article.

    Perhaps you'll have to download the source and examine it to determine what parms it expects.

Similar Threads

  1. how to pass parameters into http post method?
    By hitendrasinh.gohil in forum Mobile Java General
    Replies: 7
    Last Post: 2010-12-06, 07:54
  2. Pass Parameters to native exe application
    By mrudulpen in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2008-05-05, 09:43
  3. Replies: 0
    Last Post: 2008-04-30, 10:50
  4. pass parameters to web service with ksoap
    By racsus in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-04-11, 08:06
  5. how pass parameters to functions
    By gemilib in forum Symbian
    Replies: 3
    Last Post: 2007-10-25, 17:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×