Now that we can control the LEDs, let's look at how to control the rover using QT5. Inside the Qt Creator IDE, create a new project and name it QTRover. You can download the QTRover project folder from the GitHub repository of this chapter. We can now create this QTRover project using the clicked() function and the pressed() and released() functions. To do so, we have the following options:
- If we create this project using only the clicked() function, we would need to create five buttons: forward, backward, left, right, and stop. We would need to press the stop button each time to stop the robot.
- If we create this project using only the pressed() and released() functions, we would only need to create four buttons: forward, backward, left, and right. We wouldn't need a stop button in this case, as the rover would stop when...