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. OPC UA QML Types not found
Qt 6.11 is out! See what's new in the release blog

OPC UA QML Types not found

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 5 Posters 16.4k Views 3 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.
  • RatzzR Ratzz

    @LeLev

    I referred https://doc-snapshots.qt.io/qtopcua/qtopcua-qmlmodule.html for QML.

    Here is an example which may help you.

    ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by ODБOï
    #5

    @Ratzz thx, i read this page.
    i do
    QT += opcua in .pro
    and i do
    import QtOpcUa 5.12 as QtOpcUa in qml

    then in C++ i can use QtOpcUa but in QML i have error saying :

    QML module not found (QtOpcUa)

    there is no Opcua dir under my C:\Qt\5.12.0\mingw73_64\qml

    RatzzR 1 Reply Last reply
    0
    • ODБOïO ODБOï

      @Ratzz thx, i read this page.
      i do
      QT += opcua in .pro
      and i do
      import QtOpcUa 5.12 as QtOpcUa in qml

      then in C++ i can use QtOpcUa but in QML i have error saying :

      QML module not found (QtOpcUa)

      there is no Opcua dir under my C:\Qt\5.12.0\mingw73_64\qml

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #6

      @LeLev
      U need to download and install the module as suggested here https://forum.qt.io/topic/67023/how-to-connect-to-opcua-server-using-qt-library/5

      --Alles ist gut.

      ODБOïO 1 Reply Last reply
      2
      • RatzzR Ratzz

        @LeLev
        U need to download and install the module as suggested here https://forum.qt.io/topic/67023/how-to-connect-to-opcua-server-using-qt-library/5

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by ODБOï
        #7

        @Ratzz Thank you for the link, but i Already downloaded and installed QtOpcUa module like i'm repeating since the first post ...

        I did qmake, make, make install

        Now in c++ im able to create my opcua client.

        My probleme is in QML i cant write import QtOpcUa 5.12 as QtOpcUa

        Sorry if i'm missing something in that link you provided.

        edit : When i do 'git Log' on the version of qtopcua i compiled i see this

        SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
        
        * Bump version number from 5.11.2 to 5.11.3
        
        Change-Id: I08c918d54118ed8dccf2223cadda11d5562e440c
        
        

        Are QML Types avalable in this version ?

        1 Reply Last reply
        0
        • ODБOïO ODБOï

          Hi i, have compiled QtOpcUa and Open62541 for my opensource Qt 5.12

          Now c++ side is can use QtOpcUa but in QML

          import QtOpcUa 5.12 as QtOpcUa 
          

          output : QML module not found (QtOpcUa)

          How to use QtOpcUA QML Types in qtQuick application ?

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #8

          @LeLev said in OPC UA QML Types not found:

          Hi i, have compiled QtOpcUa and Open62541 for my opensource Qt 5.12

          Check your build folder: Do the QML files and QML plugins exist?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          ODБOïO 1 Reply Last reply
          2
          • JKSHJ JKSH

            @LeLev said in OPC UA QML Types not found:

            Hi i, have compiled QtOpcUa and Open62541 for my opensource Qt 5.12

            Check your build folder: Do the QML files and QML plugins exist?

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #9

            @JKSH Hi,
            the 'plugins' folder contains open62541 .a and .dll
            the 'lib' folder contains Qt5OpcUa .dll .a .prl
            in the 'include' .pri and hraders

            There is no qml folder

            JKSHJ 1 Reply Last reply
            0
            • ODБOïO ODБOï

              @JKSH Hi,
              the 'plugins' folder contains open62541 .a and .dll
              the 'lib' folder contains Qt5OpcUa .dll .a .prl
              in the 'include' .pri and hraders

              There is no qml folder

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #10

              @LeLev said in OPC UA QML Types not found:

              There is no qml folder

              That might be the issue. If I'm not mistaken, there should be a qml folder containing:

              • Some QML DLLs
              • plugins.qmltypes
              • qmldir

              The last two files tell Qt Creator what modules you have.

              For example, have a look inside <QTDIR>/qml/QtWebSockets/

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              ODБOïO 1 Reply Last reply
              1
              • JKSHJ JKSH

                @LeLev said in OPC UA QML Types not found:

                There is no qml folder

                That might be the issue. If I'm not mistaken, there should be a qml folder containing:

                • Some QML DLLs
                • plugins.qmltypes
                • qmldir

                The last two files tell Qt Creator what modules you have.

                For example, have a look inside <QTDIR>/qml/QtWebSockets/

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by ODБOï
                #11

                @JKSH yes as i mentioned earlier i cant find opcua folder in C:\Qt\5.12.0\mingw73_64\qml

                So what do you think is wrong with my QtOpcUa install ?

                I know QML types came out with Qt 5.12

                QtOpcUa i compiled version log is

                SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                Bump version number from 5.11.2 to 5.11.3
                

                Am i compiling wrong version ?
                Doc of QML opcua Types says

                Since:	QtOpcUa 5.12
                
                JKSHJ 2 Replies Last reply
                0
                • ODБOïO ODБOï

                  @JKSH yes as i mentioned earlier i cant find opcua folder in C:\Qt\5.12.0\mingw73_64\qml

                  So what do you think is wrong with my QtOpcUa install ?

                  I know QML types came out with Qt 5.12

                  QtOpcUa i compiled version log is

                  SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                  Bump version number from 5.11.2 to 5.11.3
                  

                  Am i compiling wrong version ?
                  Doc of QML opcua Types says

                  Since:	QtOpcUa 5.12
                  
                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #12

                  @LeLev said in OPC UA QML Types not found:

                  So what do you think is wrong with my QtOpcUa install ?

                  I'm not sure, sorry. I haven't tried to compile a module in a long time.

                  I'll let someone more experienced take over.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  ODБOïO 1 Reply Last reply
                  1
                  • JKSHJ JKSH

                    @LeLev said in OPC UA QML Types not found:

                    So what do you think is wrong with my QtOpcUa install ?

                    I'm not sure, sorry. I haven't tried to compile a module in a long time.

                    I'll let someone more experienced take over.

                    ODБOïO Offline
                    ODБOïO Offline
                    ODБOï
                    wrote on last edited by
                    #13

                    @JKSH hi,
                    It looks like nobody used QML opcua types yet...
                    i did a double post
                    https://forum.qt.io/topic/97363/how-to-use-qtopcua-qml-types-windows-qt5-12-opensource/1
                    is there a chance QtOpcUa is directly avalable in the 5.12.0 LTS ?

                    1 Reply Last reply
                    0
                    • ODБOïO ODБOï

                      @JKSH yes as i mentioned earlier i cant find opcua folder in C:\Qt\5.12.0\mingw73_64\qml

                      So what do you think is wrong with my QtOpcUa install ?

                      I know QML types came out with Qt 5.12

                      QtOpcUa i compiled version log is

                      SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                      Bump version number from 5.11.2 to 5.11.3
                      

                      Am i compiling wrong version ?
                      Doc of QML opcua Types says

                      Since:	QtOpcUa 5.12
                      
                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #14

                      @LeLev said in OPC UA QML Types not found:

                      I know QML types came out with Qt 5.12

                      QtOpcUa i compiled version log is

                      SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                      Bump version number from 5.11.2 to 5.11.3
                      

                      Am i compiling wrong version ?

                      D'oh! I didn't notice this part earlier.

                      You were compiling from the Qt 5.11 branch, which did not have the QML types.

                      @LeLev said in OPC UA QML Types not found:

                      is there a chance QtOpcUa is directly avalable in the 5.12.0 LTS ?

                      Qt 5.12 has just been released, so have a look at its source code.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      ODБOïO 1 Reply Last reply
                      1
                      • JKSHJ JKSH

                        @LeLev said in OPC UA QML Types not found:

                        I know QML types came out with Qt 5.12

                        QtOpcUa i compiled version log is

                        SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                        Bump version number from 5.11.2 to 5.11.3
                        

                        Am i compiling wrong version ?

                        D'oh! I didn't notice this part earlier.

                        You were compiling from the Qt 5.11 branch, which did not have the QML types.

                        @LeLev said in OPC UA QML Types not found:

                        is there a chance QtOpcUa is directly avalable in the 5.12.0 LTS ?

                        Qt 5.12 has just been released, so have a look at its source code.

                        ODБOïO Offline
                        ODБOïO Offline
                        ODБOï
                        wrote on last edited by
                        #15

                        @JKSH hi,
                        but on github i select 5.12 in branch dropdown menu
                        https://github.com/qt/qtopcua/tree/5.12

                        i clone it, then if i do 'git log' i see the same thing

                        SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                        Bump version number from 5.11.2 to 5.11.3
                        

                        i don't understand why.

                        JKSHJ 1 Reply Last reply
                        0
                        • ODБOïO ODБOï

                          @JKSH hi,
                          but on github i select 5.12 in branch dropdown menu
                          https://github.com/qt/qtopcua/tree/5.12

                          i clone it, then if i do 'git log' i see the same thing

                          SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                          Bump version number from 5.11.2 to 5.11.3
                          

                          i don't understand why.

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #16

                          @LeLev said in OPC UA QML Types not found:

                          i clone it, then if i do 'git log' i see the same thing

                          SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                          Bump version number from 5.11.2 to 5.11.3
                          

                          That's the Qt 5.11 branch.

                          Call git checkout v5.12.0

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          ODБOïO 1 Reply Last reply
                          1
                          • JKSHJ JKSH

                            @LeLev said in OPC UA QML Types not found:

                            i clone it, then if i do 'git log' i see the same thing

                            SHA-1: 326bf6a1058d878b7891ee6d7078ed381c462df1
                            Bump version number from 5.11.2 to 5.11.3
                            

                            That's the Qt 5.11 branch.

                            Call git checkout v5.12.0

                            ODБOïO Offline
                            ODБOïO Offline
                            ODБOï
                            wrote on last edited by
                            #17

                            @JKSH Thx!

                            ODБOïO 1 Reply Last reply
                            0
                            • ODБOïO ODБOï

                              @JKSH Thx!

                              ODБOïO Offline
                              ODБOïO Offline
                              ODБOï
                              wrote on last edited by ODБOï
                              #18

                              @JKSH one more question please.

                              Can i just update (git checkout v5.12.0) my QtOpcUa and re-do

                              qmake
                              make
                              make-install

                              directly or i have to delete my current (5.11) QtOpcUa installation ?

                              edit :
                              and git checkout v5.12.0 gives me error

                              error: pathspec 'v5.12.0' did not match any file(s) known to git.
                              
                              aha_1980A 1 Reply Last reply
                              0
                              • ODБOïO ODБOï

                                @JKSH one more question please.

                                Can i just update (git checkout v5.12.0) my QtOpcUa and re-do

                                qmake
                                make
                                make-install

                                directly or i have to delete my current (5.11) QtOpcUa installation ?

                                edit :
                                and git checkout v5.12.0 gives me error

                                error: pathspec 'v5.12.0' did not match any file(s) known to git.
                                
                                aha_1980A Offline
                                aha_1980A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on last edited by aha_1980
                                #19

                                @LeLev

                                Did you do git fetch before?

                                Depending on your remote name, you'll probably need git checkout origin/v5.12.0.

                                PS: Don't forget to remove all build results from to old Qt version before building new.

                                Edit: It seems that github repository is outdated. Please clone from (or add as remote) the official repository http://code.qt.io/cgit/qt/qtopcua.git

                                URL is https://code.qt.io/qt/qtopcua.git

                                Qt has to stay free or it will die.

                                ODБOïO 1 Reply Last reply
                                1
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #20

                                  Hi,

                                  Github is to be considered a backup mirror. It might (as you discovered) be a bit outdated with regards to current state of https://code.qt.io.

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

                                  ODБOïO 1 Reply Last reply
                                  2
                                  • aha_1980A aha_1980

                                    @LeLev

                                    Did you do git fetch before?

                                    Depending on your remote name, you'll probably need git checkout origin/v5.12.0.

                                    PS: Don't forget to remove all build results from to old Qt version before building new.

                                    Edit: It seems that github repository is outdated. Please clone from (or add as remote) the official repository http://code.qt.io/cgit/qt/qtopcua.git

                                    URL is https://code.qt.io/qt/qtopcua.git

                                    ODБOïO Offline
                                    ODБOïO Offline
                                    ODБOï
                                    wrote on last edited by
                                    #21

                                    @aha_1980 Thank you! now i got qtopcua 5.12!

                                    @aha_1980 said in OPC UA QML Types not found:

                                    PS: Don't forget to remove all build results from to old Qt version before building new.

                                    Do you mean i have to delete for exemple : Qt5OpcUa.dll / Qt5OpcUad.dll
                                    from my C:\Qt\5.12.0\mingw73_64\bin dir before i reinstall newer version ?

                                    aha_1980A 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Hi,

                                      Github is to be considered a backup mirror. It might (as you discovered) be a bit outdated with regards to current state of https://code.qt.io.

                                      ODБOïO Offline
                                      ODБOïO Offline
                                      ODБOï
                                      wrote on last edited by
                                      #22

                                      @SGaist thanks
                                      this is good to know for the next time

                                      1 Reply Last reply
                                      0
                                      • ODБOïO ODБOï

                                        @aha_1980 Thank you! now i got qtopcua 5.12!

                                        @aha_1980 said in OPC UA QML Types not found:

                                        PS: Don't forget to remove all build results from to old Qt version before building new.

                                        Do you mean i have to delete for exemple : Qt5OpcUa.dll / Qt5OpcUad.dll
                                        from my C:\Qt\5.12.0\mingw73_64\bin dir before i reinstall newer version ?

                                        aha_1980A Offline
                                        aha_1980A Offline
                                        aha_1980
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #23

                                        @LeLev said in OPC UA QML Types not found:

                                        Do you mean i have to delete for exemple : Qt5OpcUa.dll / Qt5OpcUad.dll
                                        from my C:\Qt\5.12.0\mingw73_64\bin dir before i reinstall newer version ?

                                        I'm not sure how you did build the module before. Did you use shadow building? Then I'd just wipe the shadow build folder. Or did you build inside the source dir? Then a git clean -dfx removes everything that is not under version control.

                                        Deleting the DLLs will not hurt, but they should be overwriten by make install. More critical are the things I mentioned above, e.g. old Makefiles.

                                        Regards

                                        Qt has to stay free or it will die.

                                        1 Reply Last reply
                                        2
                                        • ODБOïO Offline
                                          ODБOïO Offline
                                          ODБOï
                                          wrote on last edited by ODБOï
                                          #24

                                          @aha_1980
                                          i did :

                                          git clone
                                          cd qtopcua && mkdir build && cd build
                                          qmake ..
                                          mingw32-make
                                          mingw32_make install

                                          so i can only delete my build folder right ?
                                          thx

                                          aha_1980A 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