Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Alpha channel other than "0xFF" in LinuxFB QPA platform
QtWS25 Last Chance

Alpha channel other than "0xFF" in LinuxFB QPA platform

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.9k 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.
  • Z Offline
    Z Offline
    zplesivcak
    wrote on last edited by
    #1

    I'm using Qt5.1.1 with LinuxFB QPA platform (I'm bound to LinuxFB platform, and can't use another).

    I would like to have Qt write to LinuxFB custom alpha values alongside values of other color components. For example, if I set following style-sheet for QMainWindow "background-color: rgba(20, 20, 20, 0);" - I get following hex value of ARGB in frame-buffer 0xFF141414.

    Can someone instruct me what code should I change to accomplish this. I've tried to add some log-trace statements and I made some progress in isolating where the problem lies, but Qt is overwhelming and I would really appreciate any tip on this matter.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zplesivcak
      wrote on last edited by
      #2

      I've managed to convince Qt to write alpha value to the framebuffer with setting framebuffer to be of RGB32 type - not ARGB32!

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

        Depends on the framebuffer settings. Most likely linuxfb picks a format that does not have alpha. What does fbset print?

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zplesivcak
          wrote on last edited by
          #4

          @agocs: Thank you for your response!

          My framebuffer is of ARGB32 format. I wanted Qt to output alpha values I assigned for particular widgets and suppress:

          1. software blending,
          2. setting alpha channel in 0xFF for whole application.
            These things happened automatically when LinuxFB platform detected ARGB32 type framebuffer.

          I've accomplished what I was looking with the approach described in my previous post.

          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