Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Import static plugins in qt application for Linux
Forum Updated to NodeBB v4.3 + New Features

Import static plugins in qt application for Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k Views 1 Watching
  • 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 Offline
    A Offline
    anandvivek
    wrote on 21 Oct 2015, 10:50 last edited by anandvivek
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Oct 2015, 21:38 last edited by
      #2

      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
      0
      • A Offline
        A Offline
        anandvivek
        wrote on 27 Oct 2015, 05:18 last edited by
        #3

        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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Oct 2015, 17:18 last edited by
          #4

          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
          0

          2/4

          21 Oct 2015, 21:38

          • Login

          • Login or register to search.
          2 out of 4
          • First post
            2/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved