×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    182

    QDesktopServices opening email application with openURL() do not work on Nokai N8

    Hey,

    I need to launch the native email application from my application. I tried using the QDesktopServices but in vain. I searched for google and in some post I got it requires SwEvents. I tried providing SwEvents capability but still it returns false.

    I used the following code:

    Code:
    QDesktopServices::openUrl(QUrl(tr("mailto:ratang.gir@gmail.com?subject=Testing feedback&body=HelloFriend")))
    If anybody have the idea to fix the issue or some other way to launch the native email client with the provided to addreess and subject, do let me know.

    Regards,
    PS: Before posting do try wiki search to save your time and effort:
    http://wiki.forum.nokia.com/index.php/Wiki_Home

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: QDesktopServices opening email application with openURL() do not work on Nokai N8

    Use QProcess instead QDesktopServices,

    eg.....

    QString program = "/path/to/the/executable";
    QStringList arguments;

    QProcess *process = new QProcess(this);
    process->start(program, arguments);

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    182

    Re: QDesktopServices opening email application with openURL() do not work on Nokai N8

    Thanks for the reply. What should be the param is I need to compose the mail to predefined mail id and subject. I could not get any reference .
    PS: Before posting do try wiki search to save your time and effort:
    http://wiki.forum.nokia.com/index.php/Wiki_Home

  4. #4
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: QDesktopServices opening email application with openURL() do not work on Nokai N8

    How to "/path/to/the/executable" can be known ? what tools i can use on N8 device? using Nokia PC Suite it seems application are hidden
    Thanks
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    182

    Re: QDesktopServices opening email application with openURL() do not work on Nokai N8

    where can I find the following files:

    SchemeHandler.h
    SchemeHandler.inl
    SchemeDefs.hrh

    As per this bug we can make the QDesktopServices working but need to include this files
    PS: Before posting do try wiki search to save your time and effort:
    http://wiki.forum.nokia.com/index.php/Wiki_Home

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    182

    Re: QDesktopServices opening email application with openURL() do not work on Nokai N8

    Hi,

    Just for the ease to other members who want to launch the email client with the predefined params.

    Refer the bug reported on the link bewlo:
    http://bugreports.qt.nokia.com/browse/QTBUG-15136

    And refer the comments in post on the below give link to find the files:
    http://bugreports.qt.nokia.com/browse/QTBUG-15282

    3 Cheers.
    Last edited by PopAndDestroy; 2011-01-12 at 16:52.
    PS: Before posting do try wiki search to save your time and effort:
    http://wiki.forum.nokia.com/index.php/Wiki_Home

Similar Threads

  1. Replies: 0
    Last Post: 2010-11-12, 05:40
  2. Nokai n8 Night recording
    By Cenarius in forum General Development Questions
    Replies: 5
    Last Post: 2010-11-10, 03:11
  3. Replies: 5
    Last Post: 2010-01-22, 08:16

Posting Permissions

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