<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- quickgamepadexample.qdoc --> <title>Qt Gamepad Qt Quick Example | Qt Gamepad 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtgamepad-index.html">Qt Gamepad</a></td><td ><a href="qtgamepad-examples.html">Qt Gamepad Examples</a></td><td >Qt Gamepad Qt Quick Example</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#running-the-example">Running the Example</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Qt Gamepad Qt Quick Example</h1> <span class="subtitle"></span> <!-- $$$quickGamepad-brief --> <p>Demonstrates how to interact with the gamepad using QML.</p> <!-- @@@quickGamepad --> <!-- $$$quickGamepad-description --> <div class="descr"> <a name="details"></a> <p class="centerAlign"><img src="images/qtquickgamepad-example.png" alt="" /></p><a name="running-the-example"></a> <h2 id="running-the-example">Running the Example</h2> <p>To run the example from <a href="http://doc.qt.io/qtcreator/index.html">Qt Creator</a>, open the <b>Welcome</b> mode and select the example from <b>Examples</b>. For more information, visit <a href="http://doc.qt.io/qtcreator/creator-build-example-application.html">Building and Running an Example</a>.</p> <p>Files:</p> <ul> <li><a href="qtgamepad-quickgamepad-main-cpp.html">quickGamepad/main.cpp</a></li> <li><a href="qtgamepad-quickgamepad-qml-qrc.html">quickGamepad/qml.qrc</a></li> <li><a href="qtgamepad-quickgamepad-qml-buttonimage-qml.html">quickGamepad/qml/ButtonImage.qml</a></li> <li><a href="qtgamepad-quickgamepad-qml-dpad-qml.html">quickGamepad/qml/DPad.qml</a></li> <li><a href="qtgamepad-quickgamepad-qml-joystickviewer-qml.html">quickGamepad/qml/JoystickViewer.qml</a></li> <li><a href="qtgamepad-quickgamepad-qml-leftthumbstick-qml.html">quickGamepad/qml/LeftThumbstick.qml</a></li> <li><a href="qtgamepad-quickgamepad-qml-rightthumbstick-qml.html">quickGamepad/qml/RightThumbstick.qml</a></li> <li><a href="qtgamepad-quickgamepad-qml-main-qml.html">quickGamepad/qml/main.qml</a></li> <li><a href="qtgamepad-quickgamepad-quickgamepad-pro.html">quickGamepad/quickGamepad.pro</a></li> </ul> <p>Images:</p> <ul> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerBack.png">quickGamepad/qml/xboxControllerBack.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerButtonA.png">quickGamepad/qml/xboxControllerButtonA.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerButtonB.png">quickGamepad/qml/xboxControllerButtonB.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerButtonGuide.png">quickGamepad/qml/xboxControllerButtonGuide.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerButtonX.png">quickGamepad/qml/xboxControllerButtonX.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerButtonY.png">quickGamepad/qml/xboxControllerButtonY.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerDPad.png">quickGamepad/qml/xboxControllerDPad.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerLeftShoulder.png">quickGamepad/qml/xboxControllerLeftShoulder.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerLeftThumbstick.png">quickGamepad/qml/xboxControllerLeftThumbstick.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerLeftTrigger.png">quickGamepad/qml/xboxControllerLeftTrigger.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerRightShoulder.png">quickGamepad/qml/xboxControllerRightShoulder.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerRightThumbstick.png">quickGamepad/qml/xboxControllerRightThumbstick.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerRightTrigger.png">quickGamepad/qml/xboxControllerRightTrigger.png</a></li> <li><a href="images/used-in-examples/quickGamepad/qml/xboxControllerStart.png">quickGamepad/qml/xboxControllerStart.png</a></li> <li><a href="images/used-in-examples/quickGamepad/quickGamepad64.png">quickGamepad/quickGamepad64.png</a></li> <li><a href="images/used-in-examples/quickGamepad/quickGamepad80.png">quickGamepad/quickGamepad80.png</a></li> </ul> </div> <!-- @@@quickGamepad --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>