Results 1 to 4 of 4

Thread: Converting a qt project into a reusable library

  1. #1
    Join Date
    Jul 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Converting a qt project into a reusable library

    Hi all,

    I have one qt project which i want to convert into a reusable library which can be used in any other project simply by adding it just like we add header files.

    Is there any way to do so?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Converting a qt project into a reusable library

    reusable libraries are normally built into dll or static '.a' or '.lib'. You will nalways need to link with with the library as well as include headers unless the library is 'header only'.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Converting a qt project into a reusable library

    Quote Originally Posted by abhicreate View Post
    Is there any way to do so?
    Maybe, depending on what "any other project" includes. You can start, as usual, with the documentation

  4. #4
    Join Date
    Jul 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Converting a qt project into a reusable library

    Still,I am not able to understand how can i make project as a library can be resued. What is the exact way to do so?

    Kindly help me out.

Similar Threads

  1. Link a .dll library to a Qt project
    By n3500 in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2012, 11:31
  2. Layout objects reusable?
    By alitoh in forum Newbie
    Replies: 1
    Last Post: 28th April 2011, 16:51
  3. QGraphicsScene and QGraphicsWidget (reusable and embeddable)
    By OriginalCopy in forum Qt Programming
    Replies: 17
    Last Post: 4th April 2011, 18:03
  4. Replies: 4
    Last Post: 18th December 2009, 18:55
  5. How do to add a library to my project?
    By N3wb in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2009, 06:11

Tags for this Thread

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.