Results 1 to 2 of 2

Thread: Wrapping Qt into a dll

  1. #1
    Join Date
    Mar 2010
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Wrapping Qt into a dll

    We have some legacy applications written in Qt3.3.7 which we need to maintain. We also have a roadmap for our future products which we are developing in Qt4. We are wanting to develop a sort of graphing screen component in Qt which we can use within our Qt4 application - no problems here. However as part of the maintenance of our legacy application we now have a requirement for the same screen to be implemented in our Qt3 application.
    So my question is: is there a way to write this component code once only in Qt 4 and then make use of this component from a Qt 3 application. We are running on windows XP.
    Our current thinking is to try and wrap this component (once it is written) into a dll which can then be utilised from a Qt 3 application, but we have never tried this and are not sure if it is the correct decision or if there is a better way to try and do this.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Wrapping Qt into a dll

    You can mix and match Qt3 code with Qt4 code, only and only if you compile one or both Qt libraries in distinct namespaces.
    Use qtnamespace to set a namespace name.

    Otherwise you will get problems with for example QString. Is it Qt3, or is it Qt4?

Similar Threads

  1. Wrapping Qt
    By OlivierREVOL in forum General Discussion
    Replies: 2
    Last Post: 4th June 2009, 21:55
  2. Wrapping Qt classes strategy
    By thru in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2009, 15:12
  3. Wrapping while printing
    By veda in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2007, 15:37
  4. Word wrapping
    By bruccutler in forum Qt Programming
    Replies: 4
    Last Post: 26th February 2007, 16:33
  5. Database wrapping framework
    By benguela in forum Qt Programming
    Replies: 0
    Last Post: 19th May 2006, 07:04

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.