Results 1 to 2 of 2

Thread: How to call the dll's C++ class in Qt program?

  1. #1
    Join Date
    Oct 2009
    Posts
    32
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to call the dll's C++ class in Qt program?

    I write a program include many widgets, now I want to make it as a library or dll. If I write it as a dll, and export the all widgets class, the call program must include the all widget's header file. Can you tell me if there is the better method to do it? and the call program don't need include many header file. thanks.
    Last edited by tszzp; 2nd February 2010 at 11:26.

  2. #2
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to export the C++ class in Qt?

    use __declspec(dllexport) or Q_DECL_EXPORT.

Similar Threads

  1. Export widget to bmp
    By Lodhart in forum Newbie
    Replies: 1
    Last Post: 10th December 2009, 13:06
  2. how to export dll with gui?
    By cutie.monkey in forum Qt Programming
    Replies: 5
    Last Post: 14th November 2009, 03:19
  3. Export to ods format
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2009, 10:40
  4. Export SVG: Qwt Bug?
    By giusepped in forum Qwt
    Replies: 4
    Last Post: 19th December 2008, 11:50
  5. DLL export problem
    By hrcariaga in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2008, 07:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.