Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to make Image Viewer Application build using QT 4.0 to be cross platform?
Forum Update on Monday, May 27th 2025

Is it possible to make Image Viewer Application build using QT 4.0 to be cross platform?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 180 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Islam123786
    wrote on last edited by
    #1

    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?
    Viewer.png

    jsulmJ 1 Reply Last reply
    0
    • I Islam123786

      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?
      Viewer.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Just as a note

        external library which expects window handle.

        So it all comes down to if that library is available on other platforms.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved