Unsolved Store of Wi-Fi scan SSIDs in QT file runtime?
-
Dear all!
I need to store the SSIDs store in the qt file. Is it possible?
Thanks -
If you have some data and a way to serialize it then you can write it to a file using QFile.
-
@ChrisW67 Hi,
Thanks your reply! I want to scan the WIFI using QNetworkManager? Which will give me SSIDs and then I will store them in QFile. Is it will be right approach?
Thanks in adavance -
@Wasee said in Store of Wi-Fi scan SSIDs in QT file runtime?:
Is it will be right approach?
Yes, it is possible.
Here how to scan for SSIDs: https://stackoverflow.com/questions/45486924/qt-scanning-wi-fi-by-qnetworkaccessmanager
Accessing files in Qt: https://doc.qt.io/qt-5/qfile.html -
The QNetworkConfigurationManager class is marked obsolete in Qt 5 and does not appear in Qt 6 AFAICT.
Is there a future proof alternative? -
@jsulm Hi;
Your reply is appreciated! This code gave the SSIDs of all APs which are connected in future with the PC. If one time it stores the list then it does not update the new active wireless in the surrounding after saving in the TreeWidget why? After scanning these SSIDs is it possible to find MACs corresponding these SSIDs collected. Kindly help me regarding this.
Thanks in advance!