GUI5 ‐ QML: Page2 Tab2 ‐ Manual drone control - 3C-SCSU/Avatar GitHub Wiki

GUI5 : Manual Drone Control in QML

  • Download and Install Qt

  • Open QT Creator and click on create Project

  • Select QT Quick Application – Empty from Applications (QT for Python)

  • Enter the Name and select the path where you want to create the file

  • I have named it as AvatarGUI5_ManualDroneControl (No spaces are allowed in the Name)

  • Click on continue and select the version of Pyside (I have selected Pyside 6 as it the higher version)

  • Click Continue and select the python version (Applicable only if you have more than 1 python)

  • Click continue and you can see the list of files generated or added in the directory.

  • Click Done and Now you can see the files in QT Creator

  • In the main.qml file enter your code related to QML

  • To Run the qml code you can execute the command qml main.qml

  • In the main.py file enter the functions to call the drone actions

  • Call the qml in the main.py file

  • To Run the python code you can execute the command python main.py

  • In QT Creator to create a .qrc file and then to load the images

  • Add this file to Project. Right click on GUI5_ManualDroneControl -> Add Existing Files/Create a new file -> AvatarImages.qrc (load the images)

Please find the below Code Demonstration and Demo

Watch the video