Import static plugins in qt application for Linux
-
Hi,
I have Qt application for find available wifi connections in local area, application build by Qt 4.8.4 static source. now i want to run the application in desktop but it is not showing available wifi connections, why because i did't import the qnativewifibearer.prl (bearer) plugin in my project.. so any one can tell how to import the bearer plugin in qt application(pro file)..I found the solution for this,
add QTPLUGIN += qnativewifibearer in .pro file.add #include<QtPlugin>,
Q_IMPORT_PLUGIN(nativewifibearer) in main.cpp file.but it is working only on windows, when i following this way to show wifi connections on Linux system it is not working.
it is showing- cannot find -lqnativewifibearer.
Please suggest answer for this issue. Thanks.
-
Hi and welcome to devnet,
It's because it's not the same plugin on Linux. IIRC it's the connman plugin
-
Hi SGaist,
Please give me any sample for import connman plugin in qt.
Note: I have installed static connman-1.20 & connman-1.30 packages, but i dont know how to use connman plugin in my qt application.
Thanks and regards,
Vivek -
It's the same thing as for windows. Use a ifdef and add
Q_IMPORT_PLUGIN(connmanbearer)
or something along the lines