Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Switching from Qt4 to Qt5
QtWS25 Last Chance

Switching from Qt4 to Qt5

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 2 Posters 909 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.
  • H Offline
    H Offline
    Himanshu Rohilla
    wrote on last edited by aha_1980
    #1

    Hi All,

    When I was using Qt4.8, there was a folder named "imports" in its installation path for say "C:/Qt/4.8" . I switched to Qt5.12.4 . Now, this folder is not available.

    Is it permanently deprecated or it is replaced with a folder named "qml" ?

    HImanshu Rohilla

    jsulmJ 1 Reply Last reply
    0
    • H Himanshu Rohilla

      Hi All,

      When I was using Qt4.8, there was a folder named "imports" in its installation path for say "C:/Qt/4.8" . I switched to Qt5.12.4 . Now, this folder is not available.

      Is it permanently deprecated or it is replaced with a folder named "qml" ?

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

      @himanshu-rohilla What was in that folder? QML stuff is in subdirectory "qml" in Qt5.

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

      H 1 Reply Last reply
      0
      • jsulmJ jsulm

        @himanshu-rohilla What was in that folder? QML stuff is in subdirectory "qml" in Qt5.

        H Offline
        H Offline
        Himanshu Rohilla
        wrote on last edited by
        #3

        @jsulm It was contained 2 subdirectories in "imports" folder. These are :

        1. Qt
          1.1 labs
          1.1.1 folderlistmodel
          1.1.2 gesture
          1.1.3 particles
          1.1.4 shaders
        2. QtWebKit

        HImanshu Rohilla

        jsulmJ 1 Reply Last reply
        0
        • H Himanshu Rohilla

          @jsulm It was contained 2 subdirectories in "imports" folder. These are :

          1. Qt
            1.1 labs
            1.1.1 folderlistmodel
            1.1.2 gesture
            1.1.3 particles
            1.1.4 shaders
          2. QtWebKit
          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @himanshu-rohilla You can take a look at this: https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5
          QtWebKit is deprecated and not part of recent Qt5 versions. QWebEngine should be used instead.

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

          H 1 Reply Last reply
          0
          • jsulmJ jsulm

            @himanshu-rohilla You can take a look at this: https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5
            QtWebKit is deprecated and not part of recent Qt5 versions. QWebEngine should be used instead.

            H Offline
            H Offline
            Himanshu Rohilla
            wrote on last edited by
            #5

            @jsulm Thank you jsulm..

            I know that QtWebKit is deprecated in Qt5.

            Earlier, I configure and generate VLC-Qt code in CMake with Qt4. There is an entry "QT_IMPORTS_DIR" and "imports" subdirectory was its value.

            But now I want to compile VLC-Qt with Qt5. What should be value of "QT_IMPORTS_DIR" entry while using Qt5 ?

            HImanshu Rohilla

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Himanshu Rohilla
              wrote on last edited by
              #6

              Also it shows a message regarding Qt5

              "Found unsuitable Qt version "5.12.4" from C:/Qt/Qt5.12.4/5.12.4/msvc2017/bin/qmake.exe" .

              HImanshu Rohilla

              jsulmJ 1 Reply Last reply
              0
              • H Himanshu Rohilla

                Also it shows a message regarding Qt5

                "Found unsuitable Qt version "5.12.4" from C:/Qt/Qt5.12.4/5.12.4/msvc2017/bin/qmake.exe" .

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

                @himanshu-rohilla Are you trying to compile recent version of VLC-QT?
                Because https://github.com/vlc-qt/vlc-qt/blob/master/BUILDING.md says that Qt >= 5.5 is recommended, so it should work.
                Read that BUILDING.md file and build like described there.

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

                H 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @himanshu-rohilla Are you trying to compile recent version of VLC-QT?
                  Because https://github.com/vlc-qt/vlc-qt/blob/master/BUILDING.md says that Qt >= 5.5 is recommended, so it should work.
                  Read that BUILDING.md file and build like described there.

                  H Offline
                  H Offline
                  Himanshu Rohilla
                  wrote on last edited by
                  #8

                  @jsulm No. I am not compiling recent version of VLC-Qt .

                  I think I should try latest VLC-QT .

                  HImanshu Rohilla

                  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