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. Windows 10 Tablet QNetworkConfigurationManager not online if WIFI
Forum Updated to NodeBB v4.3 + New Features

Windows 10 Tablet QNetworkConfigurationManager not online if WIFI

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
21 Posts 6 Posters 4.0k Views 4 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.
  • ekkescornerE Offline
    ekkescornerE Offline
    ekkescorner
    Qt Champions 2016
    wrote on last edited by
    #1

    after years developing apps for Android and iOS I recently added Windows10 64 bit.
    thx to Qt my QtQuickControls2 apps are running on Windows10 with less changes in UI
    will blog about this later
    for my windows 10 support I only need .exe for desktop app - no UWP apps
    on a fresh Windows 10 pro 64 bit I installed:

    • MSVC 2017 CE
    • Qt 5.12 RC - MSVC 2017
      to deploy the app:
    • vcvars64.bat
    • windeployqt --qmldir Y:\myApp\qml Y:\build-myApp-Desktop_Qt_5_12_0_MSVC2017-Release\release
      myApp.exe is working on
    • my development environment (macOS 10.13.6 + Parallels VM - Windows 10 pro 64 bit)
    • a customer Windows 10 pro Touch device
      both connected via LAN
      now the problem:
      customers testing the app reporting that the app only works in LAN, but not connected to WIFI adapters
      I'm checking isOnline checking the onlineStateChanged SIGNAL from QNetworkConfigurationManager - same as on Android
      (on iOS I'm using OBJ-C ReachabilityListener)
      any ideas what can be wrong in windows ?
      will get a Windows 10 Tablet with WIFI next week to do more detailed tests

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
    5.15 --> 6.9 https://t1p.de/ekkeChecklist
    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

    kshegunovK 1 Reply Last reply
    0
    • ekkescornerE ekkescorner

      after years developing apps for Android and iOS I recently added Windows10 64 bit.
      thx to Qt my QtQuickControls2 apps are running on Windows10 with less changes in UI
      will blog about this later
      for my windows 10 support I only need .exe for desktop app - no UWP apps
      on a fresh Windows 10 pro 64 bit I installed:

      • MSVC 2017 CE
      • Qt 5.12 RC - MSVC 2017
        to deploy the app:
      • vcvars64.bat
      • windeployqt --qmldir Y:\myApp\qml Y:\build-myApp-Desktop_Qt_5_12_0_MSVC2017-Release\release
        myApp.exe is working on
      • my development environment (macOS 10.13.6 + Parallels VM - Windows 10 pro 64 bit)
      • a customer Windows 10 pro Touch device
        both connected via LAN
        now the problem:
        customers testing the app reporting that the app only works in LAN, but not connected to WIFI adapters
        I'm checking isOnline checking the onlineStateChanged SIGNAL from QNetworkConfigurationManager - same as on Android
        (on iOS I'm using OBJ-C ReachabilityListener)
        any ideas what can be wrong in windows ?
        will get a Windows 10 Tablet with WIFI next week to do more detailed tests
      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @ekkescorner said in Windows 10 Tablet QNetworkConfigurationManager not online if WIFI:

      I'm checking isOnline checking the onlineStateChanged SIGNAL from QNetworkConfigurationManager - same as on Android
      (on iOS I'm using OBJ-C ReachabilityListener)

      I don't follow. Do you see the wifi as a configured interface at all? Or is it only that you can't connect to it?

      Read and abide by the Qt Code of Conduct

      ekkescornerE 1 Reply Last reply
      0
      • kshegunovK kshegunov

        @ekkescorner said in Windows 10 Tablet QNetworkConfigurationManager not online if WIFI:

        I'm checking isOnline checking the onlineStateChanged SIGNAL from QNetworkConfigurationManager - same as on Android
        (on iOS I'm using OBJ-C ReachabilityListener)

        I don't follow. Do you see the wifi as a configured interface at all? Or is it only that you can't connect to it?

        ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by ekkescorner
        #3

        @kshegunov there are no active configurations listed if connected via WIFI, if connected via LAN, Ethernet configuration is active.

        Browser can access internet in both cases: WIFI and LAN

        unfortunately I don't have a windows device here with WIFI adapter - next week I'll get a customer device.

        Developing since 40 yrs now, but never did Windows development before ;-)
        on Android WIFI connection works well

        found something similar: https://stackoverflow.com/questions/48768295/qnetworkconfigurationmanagerallconfigurations-doesnt-list-wlan

        as soon as I'll have a device here I can explore it in detail

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.9 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        aha_1980A 1 Reply Last reply
        1
        • ekkescornerE ekkescorner

          @kshegunov there are no active configurations listed if connected via WIFI, if connected via LAN, Ethernet configuration is active.

          Browser can access internet in both cases: WIFI and LAN

          unfortunately I don't have a windows device here with WIFI adapter - next week I'll get a customer device.

          Developing since 40 yrs now, but never did Windows development before ;-)
          on Android WIFI connection works well

          found something similar: https://stackoverflow.com/questions/48768295/qnetworkconfigurationmanagerallconfigurations-doesnt-list-wlan

          as soon as I'll have a device here I can explore it in detail

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

          @ekkescorner

          Developing since 40 yrs now, but never did Windows development before ;-)

          are you really sure you wanne start now? ;)

          Qt has to stay free or it will die.

          ekkescornerE 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @ekkescorner

            Developing since 40 yrs now, but never did Windows development before ;-)

            are you really sure you wanne start now? ;)

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @aha_1980 hehe ;-)
            one of my best customers running my QQC2 apps on Android and iOS now also needs to run the apps on Windows 64 pro 64 Touchscreens - so there's no way around
            thx to Qt I can use the same src
            have adjusted the UI, mastered the deployment process (Qt Installer Framework on TODO), all works well from devices connected to LAN, but fails on WIFI

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              I think QTBUG-65586 might be of interest.

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

              ekkescornerE 1 Reply Last reply
              1
              • lorn.potterL Offline
                lorn.potterL Offline
                lorn.potter
                wrote on last edited by
                #7

                The wifi bearer plugins were disabled from the regular build due to network performance issues due to the scanning being performed. For windows, you can compile the nativewifi bearer plugin, install it into your Qt being used, and it will work.

                Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
                Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

                ekkescornerE 2 Replies Last reply
                2
                • SGaistS SGaist

                  Hi,

                  I think QTBUG-65586 might be of interest.

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by ekkescorner
                  #8

                  @SGaist thx mentioning this bug. on iOS I'm using native classes (ReachabilityListener.mm) - is there a way to use native windows classes same way ?

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.9 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  1 Reply Last reply
                  0
                  • lorn.potterL lorn.potter

                    The wifi bearer plugins were disabled from the regular build due to network performance issues due to the scanning being performed. For windows, you can compile the nativewifi bearer plugin, install it into your Qt being used, and it will work.

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on last edited by
                    #9

                    @lorn.potter I have no idea how I should compile the wifi bearer plugins.
                    couldn't imagine that such basic stuff - detect if device connected via wifi - doesn't work

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                    5.15 --> 6.9 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    1 Reply Last reply
                    0
                    • lorn.potterL lorn.potter

                      The wifi bearer plugins were disabled from the regular build due to network performance issues due to the scanning being performed. For windows, you can compile the nativewifi bearer plugin, install it into your Qt being used, and it will work.

                      ekkescornerE Offline
                      ekkescornerE Offline
                      ekkescorner
                      Qt Champions 2016
                      wrote on last edited by
                      #10

                      @lorn.potter found qnativewifibearer.dll here: https://www.dllme.com/dll/files/qnativewifibearer_dll.html
                      my customers copied the dll into release/bearer folder and now it is working.

                      now it would be a good question HowTo compile the dll by myself instead of downloading from web

                      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                      5.15 --> 6.9 https://t1p.de/ekkeChecklist
                      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                      J.HilkJ kshegunovK 2 Replies Last reply
                      0
                      • ekkescornerE ekkescorner

                        @lorn.potter found qnativewifibearer.dll here: https://www.dllme.com/dll/files/qnativewifibearer_dll.html
                        my customers copied the dll into release/bearer folder and now it is working.

                        now it would be a good question HowTo compile the dll by myself instead of downloading from web

                        J.HilkJ Offline
                        J.HilkJ Offline
                        J.Hilk
                        Moderators
                        wrote on last edited by
                        #11

                        @ekkescorner
                        I'm surprised, that should be part of the qt installation

                        path\to\Qt\5.XX.X\msvc20XX\plugins\bearer

                        but I noticed it's absence in my installation as well! I still have it in my original deployment folder from one of the older versions, apparently.


                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        ekkescornerE 2 Replies Last reply
                        0
                        • J.HilkJ J.Hilk

                          @ekkescorner
                          I'm surprised, that should be part of the qt installation

                          path\to\Qt\5.XX.X\msvc20XX\plugins\bearer

                          but I noticed it's absence in my installation as well! I still have it in my original deployment folder from one of the older versions, apparently.

                          ekkescornerE Offline
                          ekkescornerE Offline
                          ekkescorner
                          Qt Champions 2016
                          wrote on last edited by
                          #12

                          @J.Hilk I don't have older installation folders for windows - just started Windows development after years of android/iOS/ (BB10)

                          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                          5.15 --> 6.9 https://t1p.de/ekkeChecklist
                          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                          1 Reply Last reply
                          0
                          • ekkescornerE ekkescorner

                            @lorn.potter found qnativewifibearer.dll here: https://www.dllme.com/dll/files/qnativewifibearer_dll.html
                            my customers copied the dll into release/bearer folder and now it is working.

                            now it would be a good question HowTo compile the dll by myself instead of downloading from web

                            kshegunovK Offline
                            kshegunovK Offline
                            kshegunov
                            Moderators
                            wrote on last edited by
                            #13

                            If you want only the plugin it should be enough to run qmake from the Qt distribution you're using in the plugin folder and then nmake/mingw32-make ...

                            Read and abide by the Qt Code of Conduct

                            ekkescornerE 1 Reply Last reply
                            0
                            • kshegunovK kshegunov

                              If you want only the plugin it should be enough to run qmake from the Qt distribution you're using in the plugin folder and then nmake/mingw32-make ...

                              ekkescornerE Offline
                              ekkescornerE Offline
                              ekkescorner
                              Qt Champions 2016
                              wrote on last edited by
                              #14

                              @kshegunov I don't have mingw - only installed MSVC2017 and Qt 5.12

                              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                              5.15 --> 6.9 https://t1p.de/ekkeChecklist
                              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                              kshegunovK 1 Reply Last reply
                              0
                              • ekkescornerE ekkescorner

                                @kshegunov I don't have mingw - only installed MSVC2017 and Qt 5.12

                                kshegunovK Offline
                                kshegunovK Offline
                                kshegunov
                                Moderators
                                wrote on last edited by
                                #15

                                @ekkescorner said in Windows 10 Tablet QNetworkConfigurationManager not online if WIFI:

                                @kshegunov I don't have mingw - only installed MSVC2017 and Qt 5.12

                                That's fine, I just didn't know what compiler you chose. So you invoke nmake (msvc's version of make) after calling qmake. Unless there's some oddity it should compile. You are probably also going to need the Windows SDK for the import library files and headers and such.

                                Read and abide by the Qt Code of Conduct

                                ekkescornerE 1 Reply Last reply
                                1
                                • kshegunovK kshegunov

                                  @ekkescorner said in Windows 10 Tablet QNetworkConfigurationManager not online if WIFI:

                                  @kshegunov I don't have mingw - only installed MSVC2017 and Qt 5.12

                                  That's fine, I just didn't know what compiler you chose. So you invoke nmake (msvc's version of make) after calling qmake. Unless there's some oddity it should compile. You are probably also going to need the Windows SDK for the import library files and headers and such.

                                  ekkescornerE Offline
                                  ekkescornerE Offline
                                  ekkescorner
                                  Qt Champions 2016
                                  wrote on last edited by ekkescorner
                                  #16

                                  @kshegunov as a mobile-app-developer and IDE-user and no-cmdline-expert I have no idea what parameters I have to set for qmake ;-)
                                  this is the content of my plugins/bearer folder where the native wifi plugin is missed
                                  0_1543238079964_Bildschirmfoto 2018-11-26 um 14.13.38.png

                                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                                  5.15 --> 6.9 https://t1p.de/ekkeChecklist
                                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                                  kshegunovK 1 Reply Last reply
                                  0
                                  • J.HilkJ J.Hilk

                                    @ekkescorner
                                    I'm surprised, that should be part of the qt installation

                                    path\to\Qt\5.XX.X\msvc20XX\plugins\bearer

                                    but I noticed it's absence in my installation as well! I still have it in my original deployment folder from one of the older versions, apparently.

                                    ekkescornerE Offline
                                    ekkescornerE Offline
                                    ekkescorner
                                    Qt Champions 2016
                                    wrote on last edited by
                                    #17

                                    @J.Hilk perhaps the easiest way for me is to download an older version of Qt and copy the dll
                                    what was your newest version of Qt where the native wifi dll was contained ?

                                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                                    5.15 --> 6.9 https://t1p.de/ekkeChecklist
                                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                                    J.HilkJ 1 Reply Last reply
                                    0
                                    • ekkescornerE ekkescorner

                                      @kshegunov as a mobile-app-developer and IDE-user and no-cmdline-expert I have no idea what parameters I have to set for qmake ;-)
                                      this is the content of my plugins/bearer folder where the native wifi plugin is missed
                                      0_1543238079964_Bildschirmfoto 2018-11-26 um 14.13.38.png

                                      kshegunovK Offline
                                      kshegunovK Offline
                                      kshegunov
                                      Moderators
                                      wrote on last edited by kshegunov
                                      #18

                                      To be absolutely frank, I rarely compile on windows, and I haven't really checked the mentioned plugin in detail, so I'm of little help here. But I took a quick peek and the nativewifibearer uses the private classes, so you almost certainly would need to build Qt from scratch to be sure everything is as it should be binary-wise. If you decide to do that, before actually building you should add whatever plugin you want to the SUBDIRS variable at the end of the qtbase/src/plugins/bearers/bearers.pro file.

                                      Read and abide by the Qt Code of Conduct

                                      ekkescornerE 1 Reply Last reply
                                      0
                                      • kshegunovK kshegunov

                                        To be absolutely frank, I rarely compile on windows, and I haven't really checked the mentioned plugin in detail, so I'm of little help here. But I took a quick peek and the nativewifibearer uses the private classes, so you almost certainly would need to build Qt from scratch to be sure everything is as it should be binary-wise. If you decide to do that, before actually building you should add whatever plugin you want to the SUBDIRS variable at the end of the qtbase/src/plugins/bearers/bearers.pro file.

                                        ekkescornerE Offline
                                        ekkescornerE Offline
                                        ekkescorner
                                        Qt Champions 2016
                                        wrote on last edited by
                                        #19

                                        @kshegunov thx. think I don't want to do this ;-)
                                        will see to copy the dll from an older Qt version and open bug report

                                        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                                        5.15 --> 6.9 https://t1p.de/ekkeChecklist
                                        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                                        1 Reply Last reply
                                        0
                                        • ekkescornerE ekkescorner

                                          @J.Hilk perhaps the easiest way for me is to download an older version of Qt and copy the dll
                                          what was your newest version of Qt where the native wifi dll was contained ?

                                          J.HilkJ Offline
                                          J.HilkJ Offline
                                          J.Hilk
                                          Moderators
                                          wrote on last edited by
                                          #20

                                          @ekkescorner said in Windows 10 Tablet QNetworkConfigurationManager not online if WIFI:

                                          @J.Hilk perhaps the easiest way for me is to download an older version of Qt and copy the dll
                                          what was your newest version of Qt where the native wifi dll was contained ?

                                          I have no idea, I usually remove older versions from my hd.
                                          The creation date is june 2017, so 5.9 LTS ?


                                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                          Q: What's that?
                                          A: It's blue light.
                                          Q: What does it do?
                                          A: It turns blue.

                                          ekkescornerE 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