Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How do I create an instance of QPaintedTextureImage



  • I understand that I have to make a class that inherits from QPaintedTextureImage. What I don't understand is to put a painter into the paint method where does the painter come from is it automatically created? and the actual texture itself how is it included.


  • Lifetime Qt Champion

    Hi,

    As the class documentation states, the QPaintedTextureImage must be attached to a texture.

    The paint method provides you the QPainter instance you have to use.


Log in to reply