Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Porting a GUI from Qt 2(?)
QtWS25 Last Chance

Porting a GUI from Qt 2(?)

Scheduled Pinned Locked Moved Unsolved Brainstorm
6 Posts 3 Posters 659 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.
  • M Offline
    M Offline
    MScottM
    wrote on 24 Sept 2022, 16:21 last edited by
    #1

    I'm hoping this is the right place to ask...

    I've been trying to get a program written back in 2001 to work in Qt6.

    My project files are here: github

    I'm treating this as a learning exercise, but also hope to end up with a useful (to me) piece of software if I can make it work.

    I'm at a point where I'm trying to figure out the GUI. It looks like the author used some kind of ASCII graphics (in a file called qtpcr.xpm), and QCanvas. I'm hoping someone with GUI experience would be willing to scan through the files and tell me if there is a good way forward with this - QGraphicsView, QML, or ? I've been reading up on the QGraphicsView framework, and I admit its a steep learning curve for me, but if this is the proper method, I'll keep at it.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Sept 2022, 17:22 last edited by
      #2

      Hi,

      From a really quick look, there's no need for a change of technology. The xpm file is used to create a QPixmap.

      Can you explain the issue you have ?
      I don't have a machine at hand to try and build the project but from my light overview I did not see anything really exotic.

      The long way would be:

      • Qt 3 port
      • Qt 4 port
      • Qt 5 port
      • Qt 6 corrections

      You likely won't need so many steps as it seems the application uses pretty standard widgets.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MScottM
        wrote on 24 Sept 2022, 22:09 last edited by
        #3

        Hi @SGaist,

        Thanks for the feedback. Right now I'm working with the scanDialog code, trying to figure out how to port it from QCanvas.

        Can you expand a bit on what you mean when you say 'the long way'?

        J 1 Reply Last reply 25 Sept 2022, 06:51
        0
        • M MScottM
          24 Sept 2022, 22:09

          Hi @SGaist,

          Thanks for the feedback. Right now I'm working with the scanDialog code, trying to figure out how to port it from QCanvas.

          Can you expand a bit on what you mean when you say 'the long way'?

          J Offline
          J Offline
          JonB
          wrote on 25 Sept 2022, 06:51 last edited by
          #4

          @MScottM
          He just means the "long way" would be to go through each of these 4 ports/upgrades in sequence. But in practice if your code is straightforward you should be able to skip doing each one individually, e.g. you might manage 2 to 4 in one go and 4 to 6 in another go.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MScottM
            wrote on 25 Sept 2022, 16:07 last edited by
            #5

            @JonB,

            Ah - okay, I get it.

            I did some looking around and found this page and I'm starting with that. Would issues I'm having best be addressed in 'General and Desktop'?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 25 Sept 2022, 18:18 last edited by
              #6

              Yes, that would the the correct sub-forum.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              24 Sept 2022, 16:21

              • Login

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