I am new to programming and as a project I am making an application for calculating slabs of a building, and an important part of this is that (once the number of slabs and the length of each one have been entered) I can draw the slabs in a scheme of this form:
The program should take the amount of slabs and draw them according to the length of each one (also draw the dimension). I honestly do not know how to do it, nor what to use. I tried a QGraphicsScene but I could not. The way I am adding the slabs is with this screen (the length that the scheme takes is the one that appears in the Luz X column):