diff --git a/aptss-installer.pro b/aptss-installer.pro index e865811..56b93ef 100644 --- a/aptss-installer.pro +++ b/aptss-installer.pro @@ -32,7 +32,7 @@ CONFIG += embed_translations qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target -unix:!macx: LIBS += -lqtermwidget5 # 这一行让我查了好久 +unix:!macx: LIBS += -lqtermwidget5 -lapt-pkg # 这一行让我查了好久 RESOURCES += \ Resources.qrc diff --git a/mainwindow.cpp b/mainwindow.cpp index 61b6511..5fd9372 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4,6 +4,8 @@ #include "messagebox.h" #include #include +#include +using namespace QApt; MainWindow::MainWindow(QWidget *parent) : DMainWindow(parent) @@ -13,6 +15,9 @@ MainWindow::MainWindow(QWidget *parent) /*MessageBox *message = new MessageBox(); message->information("A", "B"); this->close();*/ + //QApt::DebFile *a = new QApt::DebFile(); + //DebFile *abc = new DebFile("/tmp/apt_2.6.0-1deepin5_amd64.deb"); + //QMessageBox::information(this, "", abc->version()); } MainWindow::~MainWindow()