Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Missing Bluetooth examples- repost



  • I am having a trouble locating my original post( uses general search) nor getting notifications about responses to my original post.

    ( Is there away to SIMPLY list / view JUST my posts on this forum?
    The forum navigation is a challenge to newcomer )

    After successfully loading and actually running (Qt creator) "application" example I did try to locate ANYTHING ( examples) about bluetooth.

    Using this link it really does not tell me HOW to ADD bluetooth examples(s).
    Using "kit" is not very intuitive.
    Why I cannot simply "import" from source?

    https://doc.qt.io/qt-5/qtbluetooth-btchat-example.html

    So the basic question - am I using correct resource ?

    PS I am really not sure what I have to do to receive notifications about repossesses to my post.



  • @AnneRanch said in Missing Bluetooth examples- repost:

    I am having a trouble locating my original post( uses general search) nor getting notifications about responses to my original post.

    You mean this one? (https://forum.qt.io/topic/107355/adding-bluetooth-example)
    Click on your profile pic at the top right of the screen (no / default image in your case), then click your name afterwards... You will see an overview of your profile and all comments / posts you created recently

    You can use this direct link to get to your profile (https://forum.qt.io/user/anneranch) or you just click your name on your post above :)



  • @AnneRanch
    Silly me - I can "watch for responses"
    AFTER my post is posted !

    OK, looks as "qtconncetivity" is partial answers to my post.
    ( I have not seen anywhere is has to be installed...)

    https://code.qt.io/cgit/qt/qtconnectivity.git/tree/examples/bluetooth/btscanner?h=5.13

    So HOW do I copy actual code from the above link to Qt Creator and make a project from the source?

    To "discuss" my post - do I have to keep adding to my first reply ?

    Yes, I did find out how to keep track of my posts, thanks.


  • Lifetime Qt Champion

    Hi,

    Use git and clone the repository.



  • OK, looks as I am on right track, but I have received this error:

    Cloning into 'btscanner?h=5-13'...
    fatal: repository 'https://code.qt.io/cgit/qt/qtconnectivity.git/tree/examples/bluetooth/btscanner?h=5.13/' not found

    I can trace / fix the error , can you give me some assistance how?
    Or just confirm that I am on the right track / path?



  • @SGaist said in Missing Bluetooth examples- repost:

    Hi,

    Use git and clone the repository.

    I am still trying to follow some kind of logic when posting , having a heck of a time.

    ? Is there a way to edit my last post?

    Questions:
    How do I verify my OS is "getting" stuff from correct repository ? Is my last "error" indicating I am in wrong repository ? Wrong link format ?
    I just copied the link from my browser.


  • Lifetime Qt Champion

    @AnneRanch the git clone URLs are written on the bottom of the repos web page.

    git clone git://code.qt.io/qt/qtconnectivity.git should work.

    To edit your last post, use the "three vertical dots" menu > Edit.

    Regards



  • @aha_1980 said in Missing Bluetooth examples- repost:

    git clone git://code.qt.io/qt/qtconnectivity.git

    OK, here are the results:

    z@z-desktop:~$ sudo git clone git://code.qt.io/qt/qtconnectivity.git
    [sudo] password for z:
    Cloning into 'qtconnectivity'...
    remote: Counting objects: 24092, done.
    remote: Compressing objects: 100% (9026/9026), done.
    remote: Total 24092 (delta 17678), reused 19312 (delta 14395)
    Receiving objects: 100% (24092/24092), 10.50 MiB | 2.26 MiB/s, done.
    Resolving deltas: 100% (17678/17678), done.
    Checking connectivity... done.
    z@z-desktop:~$

    1. Where is my cloned "bluetooth" project?
    2. A new user following instructions should receive intended results or more detailed error description. So far the GUI "instructions" and response seems useless , only generating these posts

    Here is a copy of "instructions" , leading nowhere....
    (See the original post title )

    Running the Example

    To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

    Example project @ code.qt.io

    See also Qt Bluetooth.

    Yes, I can "add"

    Qt += bluetooth

    to project

    but I am after the actual example of bluetooth scanner project


  • Qt Champions 2019

    @AnneRanch said in Missing Bluetooth examples- repost:

    Where is my cloned "bluetooth" project?

    "Cloning into 'qtconnectivity'..."

    sudo git clone git://code.qt.io/qt/qtconnectivity.git

    Why do you need to clone a repo as root user?



  • @AnneRanch said in Missing Bluetooth examples- repost:

    sudo git clone git://code.qt.io/qt/qtconnectivity.git

    In addition to @Christian-Ehrlicher please remember that after cloning the repo (getting the sources...) you need to build and install the module so you can later build and run the example you want.



  • I am not sure I want to engage in "root" user "security" discussion.
    Been there, done that.

    But appreciate refreshing my memory to MOVE the cloned data OUT of root.
    I did move the source but still cannot "buidl" it - getting "permission denied".
    I can fix that.

    So "you need to build and install the module " is next?
    I hope after I successfully build and run the intended project I can come up with simplified and real process to "import" Qt projects from ANY repository.

    Just out of curiosity - could I get an example of "Qt module" ?
    It seems my second post ( about Qt hierarchy ) in this forum was not that silly after all - for example if I want to use TCP - do I need to "add TCP module " too?

    Cheers


  • Lifetime Qt Champion

    @AnneRanch I'm wondering why you fight with git anyway.

    You can install everything with few clicks from the online installer. It seems you lost your way, so may you please tell us what you did so far to get Qt running?



  • To whom it may matter:

    Is there a way to CHANGE standard examples path to point to my newly cloned gtconnectivity examples?

    I have NO issues running Qt creator.
    When I have need for an assistance I'll will ask for it.

    Please quit second guessing my posts and try to read them before locking them.

    If possible I would like to just have an answer to the above question ONLY.

    Addendum
    I have found this reference

    https://wiki.qt.io/Qt_Examples_in_Qt_Creator

    This handy document identifies the function of "standard examples path" in question - implemented in pull down combo box .
    I do not do XML, perhaps somebody knowledgeable in XML can help me to find where is the examples path coded in XML.
    I would appreciate that very much.


Log in to reply