B2Qt.Wifi in Qt 5.7



  • 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.


  • Moderators

    @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.



  • 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 :)


  • Moderators

    @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?



  • 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.



  • 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?


  • administrators

    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.



  • @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.


  • administrators

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



  • 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.


  • administrators

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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.