Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to make an Qt qml compatible between two Qt version
Forum Updated to NodeBB v4.3 + New Features

How to make an Qt qml compatible between two Qt version

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 815 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.
  • A Offline
    A Offline
    anishmonachan
    wrote on last edited by anishmonachan
    #1

    Hello,
    Initially my qt qml c++ application were running on qt5.12.7. Later I have migrated the application to support qt5.15.2.
    I had to make some changes in the codebase, especially in qml part for the migration.

    Now, I've come across a use case scenario where my application should support/compatible with both qt5.12.7 and qt5.15.2.
    Is that feasible? Especially how difficult it is to qml compatibility for two versions?

    Thank you in advance for your answers.

    Anish

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Is that feasible?

      Yes.

      Especially how difficult it is to qml compatibility for two versions?

      Not difficult at all - it "just works". I'm working on a project right now where we support both versions. Just keep it compatible with 5.12 and 5.15 will work fine.

      (Z(:^

      1 Reply Last reply
      0
      • jeremy_kJ Online
        jeremy_kJ Online
        jeremy_k
        wrote on last edited by
        #3

        QQmlFileSelector might be helpful if most of the QML code is common, but a portion of it depends on the version of Qt.

        Asking a question about code? http://eel.is/iso-c++/testcase/

        sierdzioS 1 Reply Last reply
        0
        • jeremy_kJ jeremy_k

          QQmlFileSelector might be helpful if most of the QML code is common, but a portion of it depends on the version of Qt.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @jeremy_k said in How to make an Qt qml compatible between two Qt version:

          but a portion of it depends on the version of Qt.

          Then rewrite it to use only APIs available in Qt 5.12.

          Or use file selectors and maintain 2 separate QML implementations for these files.

          (Z(:^

          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