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. Applying colorfilter in QML, of QT
QtWS25 Last Chance

Applying colorfilter in QML, of QT

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.5k Views
  • 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.
  • S Offline
    S Offline
    Sil20
    wrote on last edited by
    #1

    Hi,
    I would loke to apply predefined or custom color filter on my QML application like :

    • change Image RGB Level
    • saturation
    • Hue
    • ...
      Ideally I would like to lower the "light" level off all the display unless the pixel Saturation is higher than XXX. This for simulating a lowering of the Ambient light without changing the part of the picture which represent Lights,LED, and all light producing element.
      The following snapshot represent a LED with and without the EFFECT. BUT I would like the lit LED to be brigher:

    I know I will probably not find directly this filter, but a generic filter mechanism would really help. Does anyone know about such a filter??

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      You can do this generically using a ShaderEffect item:
      http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-shadereffect.html

      And these are the ready made effects that mostly seem to cover your use case:
      http://doc-snapshot.qt-project.org/5.0/qtgraphicaleffects/graphicaleffects.html

      Note in both cases this only works on Qt 5.0 and Qt Quick 2.0

      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