Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 134
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel

how to show storage Info

Good night guys

I need to get into a QML the following data:

Total Storage
Total Used Storage
used in documents
used in images
used in music
used in other

Api reference appears in very little information about <bb/FileSystemInfo>


my question is.. how to show this info in QML document?, i'm using cascades obviously

many Thanks


Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: how to show storage Info

You will need to count the size of each file yourself,  there is no api to handle this.


Take a look at QFile for getting the size of a file.



If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to show storage Info

here is a sample code:

you would have to create a Q_INVOKABLE method in c++
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter