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. How to Make QVTKOpenGLNativeWidget Background Transparent in Qt?
Qt 6.11 is out! See what's new in the release blog

How to Make QVTKOpenGLNativeWidget Background Transparent in Qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 372 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.
  • 0 Offline
    0 Offline
    0V_V0
    wrote on last edited by
    #1

    Hi everyone,

    I'm currently working on a project in a Windows 11 environment using Visual Studio 2019, Qt 6.6.3, and VTK 9.1.0. I'm trying to make the background of a QVTKOpenGLNativeWidget transparent, but I'm having some trouble.

    After checking the source code of QVTKOpenGLNativeWidget, I noticed that it inherits from QOpenGLWidget. I tried to set the parent window attribute using setAttribute(Qt::WA_TranslucentBackground), hoping it would make the background of QVTKOpenGLNativeWidget transparent. Unfortunately, this method didn't work for QVTKOpenGLNativeWidget, even though it works perfectly fine for QOpenGLWidget.

    Has anyone encountered this issue before or knows a workaround to achieve a transparent background with QVTKOpenGLNativeWidget? Any advice or suggestions would be greatly appreciated!

    Thanks in advance for your help!

    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