×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    89

    App can be launched by Qt Creator only.

    On N9, my application can be launched by Qt Creator after clicking the “Run”.

    After that, the application is deployed to the device with an icon can be seen in the menu.

    But if I disconnect the device from PC and click the icon, the application wont be launched.

    Why?

    I’ve tried the application created by default. It can be launched by both method. Something must be wrong in my code, any clue?

    My application needs the right on Symbian "NetworkServices"

    But I can't find that which right is need for that on N9 from HERE

  2. #2
    Registered User
    Join Date
    Nov 2011
    Posts
    48

    Re: App can be launched by Qt Creator only.

    You should check your yourapp.desktop file (should be in "Other files" folder of your project). This file is needed to run your application with an icon.
    If you imported your Symbian project and do not have a .desktop file, you can create it in QT Creator with Projects > Run > Add Desktop File button

  3. #3
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    89

    Re: App can be launched by Qt Creator only.

    The yourapp.desktop file exists.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    48

    Re: App can be launched by Qt Creator only.

    Then check its contents. In fact, it's the only file that associates an icon with the application.
    It should look like this:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0.0
    Type=Application
    Terminal=false
    Name=Your App
    Exec=/usr/bin/invoker --type=d -s /opt/yourapp/bin/yourapp
    Icon=/usr/share/icons/hicolor/80x80/apps/yourapp80.png
    X-Window-Icon=
    X-HildonDesk-ShowInToolbar=true
    X-Osso-Type=application/x-executable
    Particularly, pay attention to the Exec line: --type=d should be present only if your project was created as "boostable", otherwise delete it. And make sure that this line points to your actual deployment path, e.g. here it's /opt/yourapp

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: App can be launched by Qt Creator only.

    And also check the aegis permissions. It seems as if they are only checked when starting the app from the launcher.

  6. #6
    Registered User
    Join Date
    Jan 2012
    Location
    Denmark
    Posts
    9

    Re: App can be launched by Qt Creator only.

    When I had this problem it was because there is a difference between the path to the QML files when launched from QtCreator and when launched via the application icon.

    With a lot of help on this site, the problem was solved by placing the QML in a resource file.

    Kim

  7. #7
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    89

    Re: App can be launched by Qt Creator only.

    Quote Originally Posted by conxt View Post
    Then check its contents. In fact, it's the only file that associates an icon with the application.
    It should look like this:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0.0
    Type=Application
    Terminal=false
    Name=Your App
    Exec=/usr/bin/invoker --type=d -s /opt/yourapp/bin/yourapp
    Icon=/usr/share/icons/hicolor/80x80/apps/yourapp80.png
    X-Window-Icon=
    X-HildonDesk-ShowInToolbar=true
    X-Osso-Type=application/x-executable
    Particularly, pay attention to the Exec line: --type=d should be present only if your project was created as "boostable", otherwise delete it. And make sure that this line points to your actual deployment path, e.g. here it's /opt/yourapp
    Problem exists in the file you just mentioned. I just change the 2 lines in it, then it works.
    “Exec=/usr/bin/invoker --single-instance --type=e --splash-landscape=/opt/myapp/startup04.jpg --splash=/opt/myapp/startup04a.jpg /opt/myapp/bin/myapp
    Icon=/usr/share/icons/hicolor/scalable/apps/myapp.svg"

    Thanks for all

Similar Threads

  1. Qt Creator update deletes QT Creator
    By arttu76 in forum [Archived] Qt SDKs and Tools
    Replies: 13
    Last Post: 2011-06-08, 10:45
  2. Replies: 7
    Last Post: 2010-07-14, 14:58
  3. SmartCam v1.0 launched
    By iiionuttt in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-06-21, 15:24
  4. SmartCam v1.0 launched
    By iiionuttt in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-06-21, 15:20

Posting Permissions

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