Qt version downgrade
-
Hello all,
I'm using a code that already has some time now.
I'm using Qt 5.4, and after all the issues I faced at first, I'm now struggling with another one.
When I run the program lots of erros shows up, most of them with of this type:
'WNoAutoErase' is not a member of 'Qt'
'WheelFocus' is not a member of 'QWidget'Does anyone know if I need to use other Qt Version?
(I've installed Qt 4.8 and set it in Tools->Options) but didn't work..Many thanks
-
Hi,
WheelFocus is part of Qt's namespace so Qt::WheelFocus. I don't know WNoAutoErase
-
It looks like your code is written for Qt3.
If so, porting might not be easy. Most of the time it would be easier and faster just to write from the scratch. -
I know this may sound stupid, but can't I install Qt3 and then compile the program like that?
-
@carlos91moreira
You can and it may even work.
But every Qt version fully supports only certain system/toolchain combination.
So it is a possibility it will not work on Windows 10 for example or will not be built with your compiler. -
But it may work on Linux 12 at least (since 14.04 doesn't have qt3), right?
I'm thinking in trying to compile this in Linux instead.
I've tried there already, but stuck at this error:
./matchflow: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
-
libqt-mt.so.3
it is looking for Qt 3
-
You should really consider porting. Qt 3 last release was more than 10 years ago.
-
What do you suggest?
Porting Qt3 to Qt4 and then to Qt5
or is it possible
Porting Qt3 to Qt5?
-
Qt 4 to Qt 5 doesn't require much work so you can jump from 3 to 5 but you will have to still follow the Qt 3 to Qt 4 porting guide.