From d067983c0d42f9bae8b9f80d67555559e1f01b1d Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 26 Jan 2024 12:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aptss-installer.pro | 2 +- mainwindow.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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()