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

Linux/Wayland: QVulkanWindow in window container cannot be transparent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • GUI: Vulkan
    • None
    • WM: Sway
      GPU: rx 480 8gb
    • 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

            lagocs Laszlo Agocs
            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