<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div class="default-style">
   Hello I am gabridc, 
   <br>
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   I am a developer for Index-fm and we are trying to integrate KArchive in the file explorer, I have tried to do this but there some error that block me to open a file. I dont know if i am using correctly the class KCompressionDevice. 
   <br>
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   Also, I would to ask another question because I would like to write a file inside my file.gz but in this case I dont have the function writeFile like KTar or KZip classes.
   <br>
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   <pre style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><span style="color: #808000;">auto</span> kgzip = KCompressionDevice(QUrl(where.toString() + <span style="color: #008000;">“/”</span> + fileName + <span style="color: #008000;">“.gz”</span>).toLocalFile(), KCompressionDevice::GZip);</pre>
   <pre style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">assert(kgzip.isOpen() == <span style="color: #808000;">true</span>);</pre>
   <pre style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"><br></pre>
   <pre style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">kgzip.write(QString(<span style="color: #008000;">"hello</span> <span style="color: #008000;">World"</span>).toUtf8());</pre>
   <pre style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">kgzip.close();</pre>
  </div>
 </body>
</html>