Drawing a circle on a QGraphicsview with opengl



  • I think this topic could be found easily on google, and I found it, but I understood nothing. I just need a simple example in which i click on a button, and a rectangle appears on a graphicsscene. I'm just learning c++ on QT creator, but I can't find complete and fully explained code samples. Could you please help me? Thankyou


  • Lifetime Qt Champion

    Hi,

    Did you took a look at the summary of the module ?

    By the way something's not clear: in your title you talk about a circle and in your question you talk about a rectangle, which is it ?

    For the first one: addElipse and for the second addRect.


Log in to reply