[Qt-interest] custom file engine or other way?

Sean Harmer sean.harmer at maps-technology.com
Tue Feb 2 09:58:22 CET 2010


Hi,

On Tuesday 02 February 2010 08:11:15 Marko Harjula wrote:
> Just quick question which direction to go.
> Basically thing is that I have directory structure which contains files
> which are compressed (which I have own class to handle open,read,save to
> file).
> I'm kind of looking that I can use "virtual" path to file, like example
>  that I have "data000.zzz" file which contains "file1.txt","file2.txt",....
>  And I can use this like ... open("data000/file1.txt")
> Of course I can create class for this,but is there better way to make this,
> like custom file engine?

If you are not adverse to using the KDE libraries, then check out the kio 
library. This contains several examples along the lines you are looking for. 
For e.g. it has kio-slaves that can descend into various compressed format 
files.

http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/annotated.html

ATB,

Sean



More information about the Qt-interest-old mailing list