Important: Please read the Qt Code of Conduct -

Absolutely Transparent QWidgets

  • I'm using EGLFS for rendering a single window application. Our application runtime is enabling a custom OS feature to render external camera feed directly to a memory mapped region for the display. The problem is that it appears that our use of MainWindow QWidget wipes everything going to the display. The MainWindow has been set to transparent, though it appears that it still writes white to the display before rendering anything over top of the MainWindow. Is there a way to make this absolutely transparent such that it won't overwrite anything on the display unless actively rendering a non-transparent qwidget there?

  • For anyone's reference, this was the line I needed to add to my QMainWindow:

    this->setAttribute(Qt::WA_NoSystemBackground, true);

Log in to reply