Results 1 to 8 of 8

Thread: Using dll in QT4

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    16
    Thanked 2 Times in 2 Posts

    Unhappy Re: Using dll in QT4

    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 :

    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
    please giv suggestions asap... i need it badly...
    Last edited by ankurjain; 14th March 2006 at 05:46.
    Do what u r afraid to do, and the death of fear is sure.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.