Discussion Board

Results 1 to 6 of 6
  1. #1
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    Hi,
    I have developed an application that can view images from its current drive. I used Qt creator on windows XP.
    The app is running on Symbian Emulator, but when I put the app in the device the app starts but doesn't display the images. I believe the images are not there in the location.

    Normally while using Carbide C++ I set the image path in the pkg file as
    "..\data\50x50\Actors\1.jpg" -"C:\system\200340EC\Hungama\BollywoodRingtones\50x50\Actors\1.jpg"
    and fetch the file from the app.
    Now in Qt creator i got two pkg files
    pictureflow_installer.pkg & pictureflow_template.pkg. where do I add the path of the file and what would be the syntax of the code.
    I tried doing this way in pictureflow_installer.pkg
    Here is the code
    Code:
    "C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-qt/pictureflow.sis" - "c:\private\2002CCCE\import\pictureflow.sis"
    "C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-build-simulator/AajaNachle_wp03.jpg" - "c:\private\2002CCCE\import\AajaNachle_wp03.jpg"
    "C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-build-simulator/BuntyAurBabli_wp04.jpg" - "c:\private\2002CCCE\import\BuntyAurBabli_wp04.jpg"
    "C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-build-simulator/Dhoom2_wp07.jpg" - "c:\private\2002CCCE\import\Dhoom2_wp07.jpg"
    
    @"C:/NokiaQtSDK/Symbian/SDK/smartinstaller.sis",(0x2002CCCD)
    But did not work.



    Please suggest me

  2. #2
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Don't modify the package file!

    Use something like this in your .pro file:
    Code:
    image.sources  = C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-build-simulator/Dhoom2_wp07
    image.path =  ./import/Dhoom2_wp07
    DEPLOYMENT += image

  3. #3
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    Here is my .pro file
    Code:
    TARGET = pictureflow
    TEMPLATE = app
    HEADERS = pictureflow.h
    SOURCES = pictureflow.cpp main.cpp
    
    image.sources  = C:/Qt/workspace/Example/pictureflow-0.1.0/pictureflow-build-simulator/Dhoom2_wp07.jpg
    image.path =  ./import/Dhoom2_wp07.jpg
    DEPLOYMENT += image
    but the images are not there. will this put the image in the default dir?

  4. #4
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    It should put the image in <default dir>/import/ . I presumed this is where you want it.

  5. #5
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    Quote Originally Posted by danhicksbyron View Post
    It should put the image in <default dir>/import/ . I presumed this is where you want it.

    I am installing my app in C drive of the device. and as mentioned below i am also putting the images in the default dir, but the images are not displaying.
    do you need any more information so that you can figure out whether the sis and the images are installing in the same dir or not?

  6. #6
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Well, if you don't want them in the "import" subdirectory, remove that from the spec. Just say "image.path = ."

    The exe and data files WILL NOT be installed in the same directory. The data files go into a "private" directory for the application, whereas all the exe (executable) files go into a special system directory.

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. Unable to compile anything with Qt Creator
    By AwesomeSauce in forum Qt
    Replies: 7
    Last Post: 2010-07-05, 15:35
  4. unable to locate application
    By david.morgan in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2010-06-30, 15:56
  5. unable to locate component
    By tlr in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2009-03-06, 10:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved