×

Discussion Board

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

    Resources in QT/QML?

    Hi,

    How can I ensure that resource files of my project (some pictures and a few audio files) are also packaged together with my application?

    I've tried to use resource file and it seems to be working for pictures files but my application (using QML Audio element) did not find audio files based on resource URLs...

    BTW. Are components of resource file loaded into memory during application stat-up or they are loaded on-demand, when they are referenced? Should I deal with unloading them in latter case?

    On the other hand it seems so that there is some size limit for resources...

    Thanks.

  2. #2
    Registered User
    Join Date
    May 2011
    Posts
    25

    Re: Resources in QT/QML?

    Hello Zlutor!
    Your problem is you do not play the audio files?

    If so, make sure the format is supported.

    I recommend you read page 36 of the following article:
    http://support.publish.nokia.com/wp-..._June20121.pdf

    Mario Velasco
    TokApps

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

    Re: Resources in QT/QML?

    Hi,

    Format is OK, it is played if i use e.g. absolute path in the simulator...
    maybe it is too big to be included into the resource file?

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

    Re: Resources in QT/QML?

    Currently it's not possible to play an audio file from the resource file. You should deploy them separately or if you want to use a resource file you can use a workaround described here to extract the audiofile from the resourcefile to a local folder for playback.

    Br,
    Villep

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

    Re: Resources in QT/QML?

    thanks a lot!

Similar Threads

  1. Embedded Qt Resources
    By DAK in forum Nokia N9
    Replies: 10
    Last Post: 2010-01-20, 16:16
  2. Java ME and resources
    By drodil in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2010-01-18, 08:21
  3. without resources
    By WaelA in forum Symbian
    Replies: 3
    Last Post: 2006-10-31, 16:34
  4. When to Release Resources
    By earamsey in forum Mobile Java General
    Replies: 0
    Last Post: 2004-06-20, 02:40

Posting Permissions

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