To conduct debugging with an Android 12 tablet while using USB on a Qt 5.14 application, follow the steps below:
- Connect your Android 12 tablet to your computer with a USB cable.
- On your Android 12 tablet, go to Settings > Developer options > USB debugging and turn it on. If you don't see the Developer options, go to Settings > About phone or tablet and tap on Build number 7 times to enable it.
- Launch your Qt 5.14 application on your computer.
- Click on the "Projects" button on the left side of the Qt Creator window.
- From the "Build & Run" tab, select the "Run" configuration for your Qt 5.14 application.
- In the "Run" section, select "Android" as the target device and then click "Run" to build and deploy the application to your Android 12 tablet.
- Once the application is deployed, you can start debugging by setting breakpoints in your code and using the "Debug" menu options or the "Debug" toolbar buttons to start and stop debugging, inspect variables, and step through your code.
Note: Make sure to have the Android SDK and NDK installed on your computer, and a suitable Android toolchain in your Qt Creator project for debugging with an Android device.