使用QuaZIP压缩文件

时间:2016-04-18 13:42:23

标签: qt quazip

我正在寻找一些使用QuaZIP在Qt中压缩文件的示例。 我尝试了这段代码,但它不起作用。我收到了分段错误错误。

JlCompress::compressFiles(zipfilename,filenames);//zipfilename is a qstring and filenames a QStringList

我应该在压缩之前打开文件吗?

1 个答案:

答案 0 :(得分:0)

问题已解决, 我删除了quazip安装,然后手动安装:

            change in inventory  inventory  cumsum
2015-01-01                  100        100     100
2015-01-02                  -20         80      80
2015-01-03                  -30         50      50
2015-01-04                  -40         10      10
2015-01-05                  -15          0      -5
2015-01-06                  100        100      95

之后我使用apt get安装了import pandas as pd df = pd.DataFrame.from_dict({'change in inventory': {'2015-01-01': 100, '2015-01-02': -20, '2015-01-03': -30, '2015-01-04': -40, '2015-01-05': -15, '2015-01-06': 100}, 'inventory': {'2015-01-01': 100, '2015-01-02': 80, '2015-01-03': 50, '2015-01-04': 10, '2015-01-05': 0, '2015-01-06': 100}}) df['cumsum'] = df['change in inventory'].cumsum() df 个软件包 最后我使用

在我的专业文件中链接了quazip
I downloaded the source code from http://sourceforge.net/projects/quazip/files/latest/download
tar xvfz quazip-0.7.1.tar.gz
cd quazip-0.7.1
qmake "PREFIX=/usr/local" "LIBS+=-lz"
make
make install