Qt Forum

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

    "QtBluetooth" plugin "declarative_bluetooth" not found

    Mobile and Embedded
    2
    7
    1029
    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.
    • J
      joanaguimas last edited by

      Hi!
      I'm starting to work with the Qt project, so this is my first application for android. I'm trying to use connection via bluetooth, but without success. Always appears the same error:

      W / Qt (12226): QML \ qqmlapplicationengine.cpp: 133 (void QQmlApplicationEnginePrivate :: _ q_finishLoad (QObject *)): QQmlApplicationEngine failed to load component
      W / Qt (12226): QML \ qqmlapplicationengine.cpp: 134 (void QQmlApplicationEnginePrivate :: _ q_finishLoad (QObject *)): qrc: /main.qml: 3 module "QtBluetooth" plugin "declarative_bluetooth" not found
      W / Qt (12226):

      someone who has seen this error?

      Thank you. :)

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

        Hi,

        Might sound silly but did you add

        QT += bluetooth

        to your pro file ?

        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
        • J
          joanaguimas last edited by

          yes, I have: "import QtBluetooth 5.3"..

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

            That's QML, what about the pro file setup ?

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

            J 1 Reply Last reply Reply Quote 0
            • J
              joanaguimas @SGaist last edited by

              @SGaist

              sorry, I understood wrong the question.. on my pro file I have:

              QT += bluetooth
              SOURCES += main.cpp

              TARGET = CityBike
              TEMPLATE = app

              RESOURCES += qml.qrc

              OTHER_FILES +=ligar.qml main.qml

              now, the error is only:

              W/Qt (28276): qrc:/ligar.qml:3 ((null)): qrc:/ligar.qml:3:1: module "QtBluetooth" plugin "declarative_bluetooth" not found

              thanks.

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

                Just thought of something: aren't you using the wrong import version ?

                From Qt's doc it should be 5.2 currently

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

                J 1 Reply Last reply Reply Quote 0
                • J
                  joanaguimas @SGaist last edited by

                  @SGaist

                  Hi, sorry for the delay, but I have already managed to solve the problem. Basically I uninstalled and went back to install QT. I think the error would be any files that the program couldn't find, maybe I have deleted or changed the directory unconscious. Now I have other problems to solve, but I hope to resolve alone for first step. :)

                  Thanks for the help. :)

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