Is it possible to make Image Viewer Application build using QT 4.0 to be cross platform?
-
wrote on 29 Oct 2019, 09:10 last edited by
I have built an Image Viewer application using QMainWindow and QWidget classes which is part of qt 4.0.
The main limitation is rendering and basic operation like zoom and pan, will be done by an external library which expects window handle. I am able to sucessfully render the image.My question is, Can this be made a cross platform viewer that can run on Windows, Mac and Linux?
-
I have built an Image Viewer application using QMainWindow and QWidget classes which is part of qt 4.0.
The main limitation is rendering and basic operation like zoom and pan, will be done by an external library which expects window handle. I am able to sucessfully render the image.My question is, Can this be made a cross platform viewer that can run on Windows, Mac and Linux?
@Islam123786 Qt 4.0?!
Why 4.0? This version is antique already and not supported anymore.
If you want to use Qt4 then you should use the latest Qt4 version (4.8.7 I think).Back to your question: sure you can write a cross platform image viewer using Qt4/Qt5.
"window handle" - this part is not cross platform, you will need to write platform dependant code for that.
-
Hi
Just as a noteexternal library which expects window handle.
So it all comes down to if that library is available on other platforms.
3/3