

To avoid such prompts every time you connect the device, select the Always allow from this computer check box, and then select OK. If you are using a device running Android v4.2.2, it should prompt you to verify the connection to allow USB debugging from the PC. Connect the device to the development PC.Enable USB Debugging on the Android device or developer mode on the iOS device.You can now deploy the application to a device:

PRIVATE Qt6::Quick Qt6::Sensors Qt6::Svg Qt6::Xml)Īfter adding the dependencies, select Build > Run CMake to apply configuration changes.įor more information about the CMakeLists.txt file, see Getting started with CMake.

For this, you need an Apple developer account and iOS Developer Program certificate that you receive from Apple. To develop for iOS devices, you must install Xcode and use it to configure a device.

To develop for Android devices, you must install Qt for Android and set up the development environment, as instructed in Connecting Android Devices. To build the application for and run it on a mobile device, you must set up the development environment for the device platform and configure a connection between Qt Creator and the mobile device. Note: You must have the Qt Sensors module from Qt 6.2 or later installed to be able to follow this tutorial.
