×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    15

    how to deploy pictures/audio files?

    Hi,

    I'm new with QT/QML development and I have a basic problem: how to package pictures/audio files together with my app?

    Should I add resource file into the project referring the pictures/audio files? I've tried it , it is OK for pictures but QML Audio element does not find the audio file based on the passed resource URL... :-(

    BTW. Are all resources loaded during application start-up or only when they are referenced? Should I have to bother with unloading them in case of the latter one?

    More detailed answer is better.

    Thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    Tampere
    Posts
    13

    Re: how to deploy pictures/audio files?

    Hi, you should give e look to this part of the documentation: http://doc.qt.nokia.com/4.7/qmake-va...tml#deployment
    About resources and memory usage, as far as I know they're loaded in memory at startup, so you should avoid to use them to embed audio/video files or a large number of images.
    --
    Andrea Grandi - Nokia-DXM/Tampere / Qt Ambassador
    Ubuntu Member: https://launchpad.net/~andreagrandi
    website: http://www.andreagrandi.it

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    15

    Re: how to deploy pictures/audio files?

    Thanks! If I understood right it is valid only for Symbian (and Windows CE). What about MeeGo?

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2012
    Posts
    55

    Re: how to deploy pictures/audio files?

    For MeeGo you can take a look at INSTALLS.

    For example:
    Code:
    files.path = /path/on/device/images
    files.files = images/*.png
    INSTALLS += files

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    15

    Re: how to deploy pictures/audio files?

    Thank you all very much!

    Does is work for other platforms, as well (especially Symbian)?
    Should I use DEPLOYMENT instead as mentioned before?
    Last edited by zlutor; 2012-07-27 at 12:04.

  6. #6
    Nokia Developer Expert
    Join Date
    Jun 2012
    Posts
    55

    Re: how to deploy pictures/audio files?

    As far as I know you should use DEPLOYMENT with Symbian.

    Br,
    Villep

Similar Threads

  1. Deploy jad/jar files on IIS server
    By mindus in forum Mobile Web Server
    Replies: 3
    Last Post: 2010-02-04, 11:13
  2. How can I deploy RMS files by Jar file?
    By breceivemail in forum Mobile Java General
    Replies: 1
    Last Post: 2010-01-10, 10:54
  3. easy way to deploy SIS files
    By rishikum in forum Symbian
    Replies: 5
    Last Post: 2006-01-19, 12:34
  4. Can I get/put pictures and audio into Nokia phone?
    By yinweihua in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-08-26, 15:29
  5. Storing Audio/ image files as byte arrays in flat files(eg. bin files)
    By anantharaj1999 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 11:57

Posting Permissions

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