Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How can I set composition mode in QtQuick application?
Forum Updated to NodeBB v4.3 + New Features

How can I set composition mode in QtQuick application?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    coldmund
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      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.

      157

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        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.

        (Z(:^

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved