Results 1 to 3 of 3

Thread: A question about QSystemNetworkInfo

  1. #1
    Join Date
    Dec 2010
    Posts
    2
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default A question about QSystemNetworkInfo

    Hi,
    I am new to Qt. I am trying to use QSytemNetworkInfo class to find out the available WLAN networks and their mac addresses as well as their RSS. pro file is here

    SOURCES += main.cpp\
    mainwindow.cpp

    TARGET = wlan

    HEADERS += mainwindow.h

    QT = core gui network svg
    QT += network

    include(../examples.pri)

    CONFIG += mobility
    MOBILITY = systeminfo

    symbian:TARGET.CAPABILITY = ReadDeviceData

    But still after adding mobility systeminfo when I use QSystemNetworkInfo in the header file it gives me the error: QNetworkSystemInfo no such file or directory.

    Can anyone help?

    My second question is that. Even if I make this working, this does not fulfills my problem. I need to find out a way to display all the available WLAN networks and their MAC addresses and RSS values, while this class will only give me the info about the WLAN network to which my device is connected to?

    Hope to hear a good solution soon.

    Regards, Ata

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: A question about QSystemNetworkInfo

    But still after adding mobility systeminfo when I use QSystemNetworkInfo in the header file it gives me the error: QNetworkSystemInfo no such file or directory.
    My guess: the include file is not on the standard path and needs to be added to INCLUDEPATH in the PRO file.

    I am not sure there are many mobile devices with more than one wifi interface. This class tells you what your wifi interface is connected to (or if it is not connected). It does not, AFAICT, give you any information about what wireless access points are available (i.e. no scanning ability). The networks that the device knows about may be accessible through QNetworkConfigurationManager and QNetworkConfiguration.

    Take a look at the Bearer Cloud example.

  3. #3
    Join Date
    Dec 2010
    Posts
    2
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: A question about QSystemNetworkInfo

    Hi, Chris!
    Thanks, I am already using QNetworkConfigurationManager class and I have studied Bearere Cloud example in detail. But the problem is that it does not provide me any function to access the mac addresses and Received Signal Strength. It just tells about the status of the network, like, discovered, connected etc.
    But what I need is to show MAC addresses and RSS from all the WiFi networks in range.
    I have already seen an application like this running in N900 but that is written in Python, but I need to use Qt.

    And about the QSystemNetworkInfo, I have even tried including the path in pro file, but didn't work out. Even I QNetworkConfigurationManager is working fine and both QtBearer and QtSystemInfo APIs are placed in the same folder so there is not question of wrong path. When QNetworkConfigurationManager is working then why not QSystemNetworkInfo?

Similar Threads

  1. Question about Qt+VTK...
    By Patrick Sorcery in forum Qt Programming
    Replies: 0
    Last Post: 11th October 2010, 11:20
  2. more of a C++ question
    By jajdoo in forum Newbie
    Replies: 6
    Last Post: 17th August 2010, 20:40
  3. css question
    By Hardstyle in forum Newbie
    Replies: 1
    Last Post: 29th June 2010, 05:29
  4. SQL Question
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 19:36
  5. .Net & C# question
    By mickey in forum General Programming
    Replies: 1
    Last Post: 20th November 2006, 14:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.