hooray, it works 
this is how I did it:
gzFile file;
file = gzopen (fileName.toUtf8().data(), "rb");
if(!file) {
QMessageBox::critical(0, tr
("import"), tr
("Can't open file"));
return;
}
char buffer[1024];
while(int readBytes = gzread (file, buffer, 1024))
{
}
gzclose(file);
gzFile file;
file = gzopen (fileName.toUtf8().data(), "rb");
if(!file) {
QMessageBox::critical(0, tr("import"), tr("Can't open file"));
return;
}
QByteArray input;
char buffer[1024];
QByteArray inputData;
while(int readBytes = gzread (file, buffer, 1024))
{
input.append(QByteArray(buffer, readBytes));
}
gzclose(file);
To copy to clipboard, switch view to plain text mode
thanks for the help....
niko
Bookmarks