Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change color depth of the application
Qt 6.11 is out! See what's new in the release blog

Change color depth of the application

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • A Offline
    A Offline
    alexsho
    wrote on last edited by alexsho
    #1

    Is it possible to change color depth of the application to 8 bit grayscale ?
    This is what my device supports.
    Currently i'm starting the application with -platform offscreen and then grabbing each frame, convert it from RGB to Grayscale, and sent to the display device.
    The operation takes a lot of CPU power.
    How can i make the application starts in Grayscale mode so i could get the frames already in 8 bit grayscale ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      michelson
      wrote on last edited by
      #2

      I think this is the droid you are looking for :D
      http://doc.qt.io/qt-5/qapplication.html#setColorSpec

      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