Paint line, ellipse or any shape in Qt by signal from Arduino
I am wondering if I can send signal from Arduino to paint shapes in Qt? I need to create a widget as a sketch books and draw on that by value output from Arduino. Is that possible? Or is there any example that I can learn and watch? (using qcustomplot??) Thanks for the help:)
Hi! So, what does your setup look like? You have a PC, an Arduino and they are somehow connected. How are they connected? You want to write an application using Qt Widgets that can receive commands from some external connection and then draw something accordingly. For the drawing part, have a look at QPainter Class. In case you're using serial ports, have a look at QSerialPort, or if you're using a TCP/IP network, have a look at the Qt Network Module.