qlibrary

Proper QUuid usage in Qt ? (7-Zip DLL usage problems (QLibrary, QUuid GUID conversion, interfaces))

微笑、不失礼 提交于 2020-01-06 19:35:26
问题 I'm trying to write a program that would use 7-Zip DLL for reading files from inside archive files (7z, zip etc). Here's where I'm so far: #include <QtCore/QCoreApplication> #include <QLibrary> #include <QUuid> #include <iostream> using namespace std; #include "7z910/CPP/7zip/Archive/IArchive.h" #include "7z910/CPP/7zip/IStream.h" #include "MyCom.h" // {23170F69-40C1-278A-1000-000110070000} QUuid CLSID_CFormat7z(0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00);

QLibrary - import a class

女生的网名这么多〃 提交于 2019-12-19 07:42:32
问题 I have a QT library and I want to import it in another project. Now, since I want that, even when I modify the library, the other project does not need to be compiled again, I started using QLibrary. But... I can't import a class. Or better, I can import the class, but I can't access its methods. This is the example I made. This is the class declaration: class TESTDLL_LIBSHARED_EXPORT TestDLL_lib { public: TestDLL_lib(); int a; int b; int c; int getValues(); }; and this the implementation: