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 application color to grayscale
Qt 6.11 is out! See what's new in the release blog

Change application color to grayscale

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views 2 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
    #1

    Is it possible to define programmatically the color depth of the Qt application window to 8 bit grayscale ?
    The final goal is to get the QPixmap of the application window directly in grayscale for my further processing, instead of converting it on the fly, spending a lot of CPU time.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I don't think there's anything like that in Qt.
      How often do you capture the pixmap and how large is it?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexsho
        wrote on last edited by
        #3

        I have to capture the window each time something changes, so probably it will be in the PaintEvent.

        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