How can I set composition mode in QtQuick application?



  • in QtGui, I can set composition mode using QPainter::setCompositionMode(). But I can't find anything like that and my application works always in "sourceover" mode.


  • Moderators

    Hi,

    Can you give an example where you are trying to use the mode in QtQuick ?
    If you want to change the stacking order of the items then you can set the "z" value of indivdual items.


  • Moderators

    AFAIK, QML engine relies on the composition mode to optimize painting, so you can't change it. If you want something to be painted below or above something else, either move it's definition in the QML file, or change the "z" property.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.