Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112533

networkinformation plugin not available for mingw

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.3
    • Network
    • Compiler- MinGW 11.2.0 64bit
      OS- Windows10 v21H2
      Qt 6.4.3 with Qt Creator 10.0.0
    • Windows

    Description

      I recently installed Qt6.4.3 and I was trying to use QNetworkInformation class. Code didn't worked when building with MinGW but it worked when building same code with MSVC2019. I found out that qnetworkinformation plugin is not available at <QTDIR>\6.4.3\mingw_64\plugins but it is available at <QTDIR>\6.4.3\msvc2019_64\plugins. I reinstalled Qt6.4.3 but it didn't helped. So, it seems qnetworkinformation plugin is missing for MinGW.

      // code placeholder
      #include <QCoreApplication>
      #include<QNetworkInformation>
      #include<QDebug>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          qInfo()<<QNetworkInformation::availableBackends();
          qInfo()<<QNetworkInformation::loadDefaultBackend();
          return a.exec();
      } 

      Output for MinGW build-

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            ang94 Abhishek Anand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes