Important: Please read the Qt Code of Conduct -

Multiple Qt Versions in same project

  • Hi everybody,
    I'm migrating a GPL licensed project from Qt 4.8 on MSVC2010 to Qt 5.3 on MSVC2013.
    The problem is that my project uses a library ( "KD Charts": ) that is compatible just with version 4 and if I compile my project I get several unresolved externals as the linked Qt libraries are version 5.
    What I tried is compiling Qt 4.8.6 statically with MSVC2013 and then compile KD Charts as a static library linking to the static Qt4 build.
    The problem is that it didn't fix the problem. The unresolved externals are still there and, obviously, if I try to link both Qt4 and Qt5 libraries I get conflicts.
    Any suggestion on how to make it work?
    Thanks in advance!

  • Lifetime Qt Champion


    The simplest solution would be to request an updated version of KD Charts for Qt 5 (it might only need the CONFIG += widgets line)

Log in to reply