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?
Servers for Qt installer are currently down

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 192 Views 2 Watching
  • 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 29 Oct 2019, 09:10 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

    J 1 Reply Last reply 29 Oct 2019, 09:23
    0
    • I Islam123786
      29 Oct 2019, 09:10

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Oct 2019, 09:23 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
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 29 Oct 2019, 12:40 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

        1/3

        29 Oct 2019, 09:10

        • Login

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