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. Qt version downgrade

Qt version downgrade

Scheduled Pinned Locked Moved General and Desktop
windowsversion-control
10 Posts 3 Posters 5.1k 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.
  • C Offline
    C Offline
    carlos91moreira
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      WheelFocus is part of Qt's namespace so Qt::WheelFocus. I don't know WNoAutoErase

      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
      • A Offline
        A Offline
        alex_malyu
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          carlos91moreira
          wrote on last edited by
          #4

          I know this may sound stupid, but can't I install Qt3 and then compile the program like that?

          A 1 Reply Last reply
          0
          • C carlos91moreira

            I know this may sound stupid, but can't I install Qt3 and then compile the program like that?

            A Offline
            A Offline
            alex_malyu
            wrote on last edited by alex_malyu
            #5

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

            1 Reply Last reply
            0
            • C Offline
              C Offline
              carlos91moreira
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                alex_malyu
                wrote on last edited by
                #7

                libqt-mt.so.3

                it is looking for Qt 3

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You should really consider porting. Qt 3 last release was more than 10 years ago.

                  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
                  • C Offline
                    C Offline
                    carlos91moreira
                    wrote on last edited by
                    #9

                    What do you suggest?

                    Porting Qt3 to Qt4 and then to Qt5

                    or is it possible

                    Porting Qt3 to Qt5?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      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.

                      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

                      • Login

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