Thanx again for reply. I will explain first what i am trying to do.
I am making a dll which will give the functionality to create a table and do operations on it like excel. this dll is to used in the main project and will use all functions from the dll. This dll has to be made in such a way that it can be used in other QT projects as well.
The main project is having two tables in a form as below
Now being new to qt, i tried my hand with first making only a class in a separate dll project, say it QGrid from the MS Addin for QT, and only inherited the class QTableWidget publicly.
I exported the symbol by extern "C" method i posted in above post and used it in the main project as i stated above (typedef and all that stuff).
This i studied from a sample dll project for QT. also thos method is in the docs of QLibrary.
Now u tell me how to do the things work.
my pro file for dll is as follows :
please giv suggestions asap... i need it badly...DEPENDPATH += .
INCLUDEPATH += . ../include/
TARGET = QGrid
QT = core gui
TEMPLATE = lib plugin
SOURCES += QGrid.cpp
HEADERS += QGrid.h
FORMS += QGrid.ui
RESOURCES += QGrid.qrc
CONFIG += shared
DEFINES += BUILD_QGRID
HEADERS += QGrid.h






Reply With Quote
Bookmarks