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. B2Qt.Wifi in Qt 5.7
QtWS25 Last Chance

B2Qt.Wifi in Qt 5.7

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlwifi
12 Posts 3 Posters 6.6k 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.
  • V Offline
    V Offline
    veryqtperson
    wrote on 4 Aug 2016, 11:33 last edited by veryqtperson 8 Apr 2016, 11:34
    #1

    I have a commercial Qt 5.7 on Windows and I installed the following components:

    asd

    I want to try a WiFi example from this manual: http://doc.qt.io/QtForDeviceCreation/qtfordevicecreation-wifi-wifi-qml-example.html

    So, I added import B2Qt.Wifi 1.0 in my main.qml and right away I have an error:

    module "B2Qt.Wifi" is not installed
    

    I also tried adding this in *.pro file:

    QT += qml b2qtwifi
    

    but that gives me:

    Project ERROR: Unknown module(s) in QT: b2qtwifi
    

    And I tried all this on Linux as well. Same result.

    So, what does it take to have a WiFi module working in QML? Considering having commercial license, one would expect to have everything ready to use out-of-the-box :)

    I've also found this page: http://doc.qt.io/QtForDeviceCreation/qtee-module-reference.html
    But it's kinda empty for some reasons.

    R 1 Reply Last reply 4 Aug 2016, 12:11
    0
    • V veryqtperson
      4 Aug 2016, 11:33

      I have a commercial Qt 5.7 on Windows and I installed the following components:

      asd

      I want to try a WiFi example from this manual: http://doc.qt.io/QtForDeviceCreation/qtfordevicecreation-wifi-wifi-qml-example.html

      So, I added import B2Qt.Wifi 1.0 in my main.qml and right away I have an error:

      module "B2Qt.Wifi" is not installed
      

      I also tried adding this in *.pro file:

      QT += qml b2qtwifi
      

      but that gives me:

      Project ERROR: Unknown module(s) in QT: b2qtwifi
      

      And I tried all this on Linux as well. Same result.

      So, what does it take to have a WiFi module working in QML? Considering having commercial license, one would expect to have everything ready to use out-of-the-box :)

      I've also found this page: http://doc.qt.io/QtForDeviceCreation/qtee-module-reference.html
      But it's kinda empty for some reasons.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 4 Aug 2016, 12:11 last edited by raven-worx 8 Apr 2016, 12:14
      #2

      @veryqtperson
      the error says that it couldn't find the QML plugin/files in the QML import path.
      So check it (normally the "qml" folder in your Qt installation) if there are B2Qt.Wifi qml files present.
      Also a note to your screenshot: this only says that you installed the sources for B2Qt.Wifi. Maybe you need to compile it yourself? Or you can download it from your Qt account?

      I assumed you haven't changed/overwritten/etc. the QML import paths?

      @veryqtperson said:

      I've also found this page: http://doc.qt.io/QtForDeviceCreation/qtee-module-reference.html
      But it's kinda empty for some reasons.

      This link seems to work.

      I also tried adding this in *.pro file:

      QT += qml b2qtwifi
      

      this is only needed when you want to use the modules C++ classes.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      V 1 Reply Last reply 4 Aug 2016, 13:27
      1
      • R raven-worx
        4 Aug 2016, 12:11

        @veryqtperson
        the error says that it couldn't find the QML plugin/files in the QML import path.
        So check it (normally the "qml" folder in your Qt installation) if there are B2Qt.Wifi qml files present.
        Also a note to your screenshot: this only says that you installed the sources for B2Qt.Wifi. Maybe you need to compile it yourself? Or you can download it from your Qt account?

        I assumed you haven't changed/overwritten/etc. the QML import paths?

        @veryqtperson said:

        I've also found this page: http://doc.qt.io/QtForDeviceCreation/qtee-module-reference.html
        But it's kinda empty for some reasons.

        This link seems to work.

        I also tried adding this in *.pro file:

        QT += qml b2qtwifi
        

        this is only needed when you want to use the modules C++ classes.

        V Offline
        V Offline
        veryqtperson
        wrote on 4 Aug 2016, 13:27 last edited by veryqtperson 8 Apr 2016, 13:30
        #3

        Maybe you need to compile it yourself? Or you can download it from your Qt account?
        I assumed you haven't changed/overwritten/etc. the QML import paths?

        So, it's not out-of-the-box? Despite the fact that I'm ok-ish with that, it's nowhere to find so I could build/import it.
        From my Qt Account I've downloaded unified-online-installer and it should contain everything, according to its description, but apparently it does not.

        That's what else I have in Qt Account:

        It's just separate downloads for everything from unified-online-installer.

        This link seems to work.

        Yes, I can see that. That's where I've found the manual. But it's kinda for 5.6. And it goes without any preparations like "...first you need to build B2Qt.Wifi from sources and overwrite some QML import paths", so it implies that all this is done already and you can just use it.

        There is no such thing in 5.7? And why to keep this page, what's its point then.

        So, I need to install Qt 5.6 in order to have B2Qt.Wifi in QML and be able to run this manual? I find it a bit weird :)

        R 1 Reply Last reply 4 Aug 2016, 13:53
        0
        • V veryqtperson
          4 Aug 2016, 13:27

          Maybe you need to compile it yourself? Or you can download it from your Qt account?
          I assumed you haven't changed/overwritten/etc. the QML import paths?

          So, it's not out-of-the-box? Despite the fact that I'm ok-ish with that, it's nowhere to find so I could build/import it.
          From my Qt Account I've downloaded unified-online-installer and it should contain everything, according to its description, but apparently it does not.

          That's what else I have in Qt Account:

          It's just separate downloads for everything from unified-online-installer.

          This link seems to work.

          Yes, I can see that. That's where I've found the manual. But it's kinda for 5.6. And it goes without any preparations like "...first you need to build B2Qt.Wifi from sources and overwrite some QML import paths", so it implies that all this is done already and you can just use it.

          There is no such thing in 5.7? And why to keep this page, what's its point then.

          So, I need to install Qt 5.6 in order to have B2Qt.Wifi in QML and be able to run this manual? I find it a bit weird :)

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 4 Aug 2016, 13:53 last edited by
          #4

          @veryqtperson said:

          Yes, I can see that. That's where I've found the manual. But it's kinda for 5.6. And it goes without any preparations like "...first you need to build B2Qt.Wifi from sources and overwrite some QML import paths", so it implies that all this is done already and you can just use it.

          well, isn't that the answer to your question!?!

          So, I need to install Qt 5.6 in order to have B2Qt.Wifi in QML and be able to run this manual? I find it a bit weird :)

          What makes you think that?!
          Why do you assume that it should work out of the box in Qt 5.7 when it wasn't already in Qt 5.6?

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          V 1 Reply Last reply 4 Aug 2016, 14:12
          0
          • R raven-worx
            4 Aug 2016, 13:53

            @veryqtperson said:

            Yes, I can see that. That's where I've found the manual. But it's kinda for 5.6. And it goes without any preparations like "...first you need to build B2Qt.Wifi from sources and overwrite some QML import paths", so it implies that all this is done already and you can just use it.

            well, isn't that the answer to your question!?!

            So, I need to install Qt 5.6 in order to have B2Qt.Wifi in QML and be able to run this manual? I find it a bit weird :)

            What makes you think that?!
            Why do you assume that it should work out of the box in Qt 5.7 when it wasn't already in Qt 5.6?

            V Offline
            V Offline
            veryqtperson
            wrote on 4 Aug 2016, 14:12 last edited by
            #5

            Why do you assume that it should work out of the box in Qt 5.7 when it wasn't already in Qt 5.6?

            Because the manual starts with: "Use the following import statement in the QML files to access the B2Qt.Wifi QML types" and then "import B2Qt.Wifi 1.0".

            It implies that such module is available and ready to use, doesn't it? :)
            But turns out it''s not.

            So,

            isn't that the answer to your question!?!

            As you can see, it is not.

            Most probably I misunderstood something from that manual, but I'm failing to figure out what exactly.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              veryqtperson
              wrote on 8 Aug 2016, 14:19 last edited by veryqtperson 8 Sept 2016, 07:42
              #6

              Well, finally I decided to install a Qt version 5.6 in addition to already installed 5.7, and it does indeed contain such module out-of-the-box.

              So, the only question left: why this module is not included in 5.7?

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tekojo
                wrote on 9 Aug 2016, 06:33 last edited by
                #7

                Hi @veryqtperson
                Sounds like a question that should be asked from support through your Qt Account.
                I am pretty sure there were no module removals for Qt 5.7. You did check the path for the 5.7 sysroot? (should be similar to the one you have there in the picture for 5.6)

                P.S. when you find out what is going wrong, please tell us too, I'm curious on what happened.

                1 Reply Last reply
                1
                • V Offline
                  V Offline
                  veryqtperson
                  wrote on 9 Aug 2016, 07:41 last edited by
                  #8

                  @tekojo, yes, I did check the path, and I compared its contents with path to sysroot of 5.6 - there is no folder B2Qt in 5.7. And I tried it not only with Raspberry toolchain, but also with Toradex, Apalis and Emulator - all are missing B2Qt module.

                  Yes, of course, I'll post updates here.

                  T 1 Reply Last reply 9 Aug 2016, 10:33
                  0
                  • V veryqtperson
                    9 Aug 2016, 07:41

                    @tekojo, yes, I did check the path, and I compared its contents with path to sysroot of 5.6 - there is no folder B2Qt in 5.7. And I tried it not only with Raspberry toolchain, but also with Toradex, Apalis and Emulator - all are missing B2Qt module.

                    Yes, of course, I'll post updates here.

                    T Offline
                    T Offline
                    tekojo
                    wrote on 9 Aug 2016, 10:33 last edited by
                    #9

                    @veryqtperson sounds like a failed install then.
                    Hope it gets solved.

                    1 Reply Last reply
                    1
                    • V Offline
                      V Offline
                      veryqtperson
                      wrote on 9 Aug 2016, 12:44 last edited by
                      #10

                      No, it's not a failed install.

                      What happened is that module has been renamed in 5.7 and moved to different place: /5.7/Boot2Qt/sources/b2qt-utils/src/networksettings
                      And it has not been documented yet, that's why this page is empty, I guess.

                      So, original article is no use for 5.7.

                      T 1 Reply Last reply 10 Aug 2016, 05:56
                      0
                      • V veryqtperson
                        9 Aug 2016, 12:44

                        No, it's not a failed install.

                        What happened is that module has been renamed in 5.7 and moved to different place: /5.7/Boot2Qt/sources/b2qt-utils/src/networksettings
                        And it has not been documented yet, that's why this page is empty, I guess.

                        So, original article is no use for 5.7.

                        T Offline
                        T Offline
                        tekojo
                        wrote on 10 Aug 2016, 05:56 last edited by
                        #11

                        @veryqtperson
                        That should not happen. Could you open a bug on it? (in case it isn't a known issue)

                        1 Reply Last reply
                        1
                        • V Offline
                          V Offline
                          veryqtperson
                          wrote on 10 Aug 2016, 10:56 last edited by
                          #12

                          I'm not sure if it qualifies as a bug - after all, the component exists (and hopefully works, I'll try it later), it's only been renamed and moved to another place without any announcement or notice in changelog. And yes, it lacks documentation, but that's in progress I hope and soon we'll see it.

                          1 Reply Last reply
                          0

                          5/12

                          4 Aug 2016, 14:12

                          • Login

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