Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    [Solved] Import static plugins in qt application

    General and Desktop
    2
    3
    840
    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
      athavan last edited by

      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)..

      thanks,

      1 Reply Last reply Reply Quote 1
      • A
        athavan last edited by

        I found the solution for this,
        add QTPLUGIN += qnativewifibearer in .pro file.

        add #include<QtPlugin>,
        Q_IMPORT_PLUGIN(nativewifibearer) in main.cpp file.

        It is working fine for me...

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

          Hi,

          Nice you found out and thanks for sharing.

          Please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          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