Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem with different versions Qt/QML
Forum Updated to NodeBB v4.3 + New Features

Problem with different versions Qt/QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
8 Posts 3 Posters 753 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.
  • D Offline
    D Offline
    Damian7546
    wrote on last edited by Damian7546
    #1

    Hi,

    In my Windows system with Qt Creator 9.0.1 ,Qt 5.15.2and compiler: MSVC2019 32bit, a did integration my qt logic with qml like below:

    qt:

    engine.rootContext()->setContextProperty("scannerEventFilter", scannerEventFilter);
    

    QML:

    Connections {
            target: scannerEventFilter
            function onReadedTicket(result) {
                console.log("Siganl appear")
                popup_readeTicket.open()
                popup_readeTicket.desc = result
            }
        }
    

    And on Windows system everything works. Next I compied my project dictionary and paste to may other machine in Linux Ubuntu with Qt Creator 5.0.2 , Qt 5.12.12and compiler: GCC 64bit.
    I opened project, compile and run.
    It turns out that signal in qml doesn't appear. I noticed that in QML Connection line I have a error Unknown component M300. When I check Tools > QML/JS > Reset Code Model the error is cleared. Unfortunatelly after the next compille the error is appear.
    What can be wrong ?Why signal doesnt work on Linux ?

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      before 5.14 the Connections syntax was different:

      write this instead:

      Connections {
          target: scannerEventFilter
          onReadedTicket: {
              console.log("Siganl appear")
              popup_readeTicket.open()
              popup_readeTicket.desc = result // result should be the name of the signal parameter
          }
      }
      

      You can also use this syntax in 5.15 (you might get a warning though).

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Damian7546
        wrote on last edited by Damian7546
        #3

        @GrecKo thank you very much. it works

        JoeCFDJ 1 Reply Last reply
        0
        • D Damian7546

          @GrecKo thank you very much. it works

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          @Damian7546 It may be better to use the same version of Qt on all OSs.

          D 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @Damian7546 It may be better to use the same version of Qt on all OSs.

            D Offline
            D Offline
            Damian7546
            wrote on last edited by
            #5

            @JoeCFD I know.

            But I am beginner on Linux (Ubuntu) and I had some problem with install qt.

            On windows os I installed qt and qtCreator with Qt Online installer -very simple tools.
            but on Ubuntu I have troubles.

            1. When I tried install from Qt Online installer I have error in setup wizard : Cannot retrieve remote tree
              2)After many times, I gave up on the online installer, and I choosen on qt website: Offline installer/ 5.12.x Offline Installer, and works.

            Is any simple way to pupdate my qt on Ubuntu ?

            JoeCFDJ 1 Reply Last reply
            0
            • D Damian7546

              @JoeCFD I know.

              But I am beginner on Linux (Ubuntu) and I had some problem with install qt.

              On windows os I installed qt and qtCreator with Qt Online installer -very simple tools.
              but on Ubuntu I have troubles.

              1. When I tried install from Qt Online installer I have error in setup wizard : Cannot retrieve remote tree
                2)After many times, I gave up on the online installer, and I choosen on qt website: Offline installer/ 5.12.x Offline Installer, and works.

              Is any simple way to pupdate my qt on Ubuntu ?

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #6

              @Damian7546 said in Problem with different versions Qt/QML:

              Cannot retrieve remote tree

              https://forum.qt.io/topic/122837/download-qt-io-is-down/50
              Try it again. I rarely had issues.

              D 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @Damian7546 said in Problem with different versions Qt/QML:

                Cannot retrieve remote tree

                https://forum.qt.io/topic/122837/download-qt-io-is-down/50
                Try it again. I rarely had issues.

                D Offline
                D Offline
                Damian7546
                wrote on last edited by Damian7546
                #7

                @JoeCFD awesome, you're right - it works. I lost week ago whole day to find solution:/

                Unfortunately after install 5.15.2 Qt version on Ubuntu, I have a problem with deploy application by CQtDeployer tool :/ In old version everything works.

                Now, CQtDeployer creating a files to executable file but when I try run my app I get error:

                developer@devOS:~/Desktop/deployApp/DistributionKit$ ./Kas*
                /home/developer/Desktop/deployApp/DistributionKit/bin/KasApp: error while loading shared libraries: libicui18n.so.56: cannot open shared object file: No such file or directory
                
                

                Lack of this libraries compared to the old version:Screenshot from 2023-01-08 19-49-38.png

                JoeCFDJ 1 Reply Last reply
                0
                • D Damian7546

                  @JoeCFD awesome, you're right - it works. I lost week ago whole day to find solution:/

                  Unfortunately after install 5.15.2 Qt version on Ubuntu, I have a problem with deploy application by CQtDeployer tool :/ In old version everything works.

                  Now, CQtDeployer creating a files to executable file but when I try run my app I get error:

                  developer@devOS:~/Desktop/deployApp/DistributionKit$ ./Kas*
                  /home/developer/Desktop/deployApp/DistributionKit/bin/KasApp: error while loading shared libraries: libicui18n.so.56: cannot open shared object file: No such file or directory
                  
                  

                  Lack of this libraries compared to the old version:Screenshot from 2023-01-08 19-49-38.png

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  @Damian7546 Try to find out where the libs are located and check out why they are not linked or wrapped properly, On Linux, they are stored under 5.15.2/gcc_64/lib/

                  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