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. What does QWidget.setMask() exactly do?
Forum Updated to NodeBB v4.3 + New Features

What does QWidget.setMask() exactly do?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 1.2k 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.
  • J Offline
    J Offline
    JC_Yang
    wrote on last edited by
    #1

    the environment in details:
    Qt 5.9.2 with EGLFS backend on a embedded linux board with ARM mali GPU.
    Kernel version 3.10.y.
    what exactly does setMask() do when rendering? what primitives in terms of QPA actions(hope this term is not too wrong) does it corresponding to? I've tried setOpacity(), it works as expected. The board which I work on is a bit special, /dev/fb0 which Qt work on is just one layer of output, there are other layers such as /dev/vo in the background, the whole output engine will automatically alpha blend the /dev/fb0 and /dev/vo to form the final real output. setOpacity() does indicate it work this way, I'd like to know what setMask() does exactly to learn why it does not work. Any guides to the internal Qt codes to find the answers?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should start by taking a look a QWidget's sources to see how setMask works. At the end of the chain, the QEglfsWindow class will be of interest.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FrankHe
        wrote on last edited by
        #3

        hello,QWidget. Setmask() can you use it now in eglfs backend?

        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