Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89192

Linux/Wayland: QVulkanWindow in window container cannot be transparent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: GUI: Vulkan
    • Labels:
      None
    • Environment:
      WM: Sway
      GPU: rx 480 8gb
    • Platform/s:
      Linux/Wayland

      Description

      Steps to find bug:

      1. Get hello Vulkan widget example
      2. Edit clear alpha color value to less than 1.0
      3. Set mainWindow attribute Qt::WA_TranslucentBackground

      Exact changes:

      Line 455 in trianglerender.cpp change to:

      VkClearColorValue clearColor = {{ 0, 0, 0, 0.5 }};

      Line ~108 in main.cpp add:

      mainWindow.setAttribute(Qt::WA_TranslucentBackground);

       

      After this is done the background should be at least semi-transparent.

      But on Wayland the background remains completely opaque.

       

      What I found:

      • Xorg environment works fine
      • Setting QT_QPA_PLATFORM=xcb variable "fixes" the problem
      • GLFW-Wayland does not have this issue

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            ghostnan Anon N/A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes