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. Transparent background with linuxfb

Transparent background with linuxfb

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

    Hello,

    I'm trying to overlay animation with QT using linuxfb. I'd like to have it set up so that when QT redraws the image, it clears the background to Qt::transparent. Anything I have tried so far simply results in either a black or white rectangle, but not a "clear" one.

    All QT has to do is write 0x00000000 to each pixel, but I can't quite seem to figure out how to make it do that. Any advice?

    1 Reply Last reply
    0
    • I Offline
      I Offline
      img_man
      wrote on last edited by
      #2

      I can change the background color (setBackgroundBrush) to anything I want, but I can't make it transparent. What am I doing wrong?

      1 Reply Last reply
      0
      • I Offline
        I Offline
        img_man
        wrote on last edited by
        #3

        I managed to set the background to transparent, but for some reason, QT never draws the background. Obiously this is terrible for animation. I want it to always draw the background, but draw a transparent background. Any ideas?

        1 Reply Last reply
        0
        • I Offline
          I Offline
          img_man
          wrote on last edited by
          #4

          I have determind that this is NOT possible. It's a good idea to move to the eglfs or minimalegl platform.

          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