Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Import static plugins in qt application for Linux

    General and Desktop
    2
    4
    882
    Loading More Posts
    • 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.
    • A
      anandvivek last edited by anandvivek

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        It's because it's not the same plugin on Linux. IIRC it's the connman plugin

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

        1 Reply Last reply Reply Quote 0
        • A
          anandvivek last edited by

          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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            It's the same thing as for windows. Use a ifdef and add Q_IMPORT_PLUGIN(connmanbearer) or something along the lines

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post