Unsolved is there any way to integrate two projects one build in qT4.1 and onother one in QT 6.4??
-
is there any way to integrate two projects one build in qT4.1 and onother one in QT 6.4?? because the one in 4.1 don't even build or run!!! in qt6.4
-
Hi,
No, port that old project to Qt 5 first and then Qt 6. The transition from 5 to 6 should be pretty trivial.
-
well i didnt understand well i don't know i thought also it depend on the compiler cuz qt6 it works with 64bit s!!
-
@odJL said in is there any way to integrate two projects one build in qT4.1 and onother one in QT 6.4??:
well i didnt understand well
@SGaist said in is there any way to integrate two projects one build in qT4.1 and onother one in QT 6.4??:
No, port that old project to Qt 5 first and then Qt 6
That is what you need to do! As for bit-ness, you need both to be 32- or (preferably) 64-bit. You cannot mix bit-ness.
-
@odJL said in is there any way to integrate two projects one build in qT4.1 and onother one in QT 6.4??:
well i didnt understand well i don't know i thought also it depend on the compiler cuz qt6 it works with 64bit s!!
If you use a library written with Qt4 and already compiled, there is the problem that you need to use the same compiler version (most likely) for the other project as well. For example, on Windows MSVC 2010, 2013 and 2017 are all not compatible with each other. You cannot link between different compiler versions (this has nothing to do with Qt in particular). I know that 2017 and 2019 are compatible, though. If you use pre-compiled Qt libraries, Qt 4 only exists for older compilers and Qt 6 only for newer compilers (on Windows).
Biggest problem: your Qt 4 code needs to link to Qt 4 and your Qt 6 code needs to link to Qt 6. This is not possible, because both Qt versions define the same symbols for the linker. You also cannot pass a QString or a QVector between functions of Qt 4 and Qt 6. The ABIs are not compatible. There is no way to have both Qt 4 and Qt 6 inside the same program. This is the reason why you have to port one project over to use the same Qt version.