QTgamepad, how to install and .pro configurations



  • Hey everyone...
    I know it seems like a really obvious matter to most of you guys out there but please bear with me...
    I'm searching for a library to get input from a PS4 Controller, so I winded up with Qt's qtgamepad.
    This module however doesn't seem to be in the installed files by the Qt installer and you gotta download it from the github by this link that I found: https://github.com/qt/qtgamepad
    So I downloaded this project (module Idk what to call it...) but I have no idea how to use the files...
    I guess that I have to build it first however I didn't find any video on youtube or any manual on internet about how to do so, they all just say how to use it!
    I found some headers and tried to use them but my .pro file in my project needs the famous (LIBS += /Directory/ )...
    So I appreciate any help that you guys are willing to give about how to build this Qtgamepad...
    Tnx in advance.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    The official Qt source repositories can be found at https://code.qt.io. Github is just a mirror.

    You first have to build and install the module. You can to that from Qt Creator, so you ensure that you are using the right version of Qt.

    Once installed, you can start here

    Note that IIRC, QtGamePad is a technology preview with Qt 5.8 so you could also just install that version and get the module to test.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.