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

Windows: Transparent frameless window has a frame with titlebar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0, 6.10
    • None
    • Windows 11, System Scale: 125%
    • Windows

      Steps to reproduce:

      • run the attached "window_flags.pro" project
      • tick on the "Frameless" checkbox, click "Apply"
      • tick off the "Frameless" checkbox, click "Apply"
      • tick on the "Frameless" and "Transparent For Input" checkboxes, click "Apply"

      Expected result: "window-flags-good.jpg"

      Actual result: "window-flags-bad.jpg"

       

      If you will tick on the "Frameless" checkbox and click "Apply", then tick on the "Transparent For Input" checkbox and click "Apply", then it also works as expected.

       

      It's essential to have the following lines:

              setWindowOpacity(0.9f);
              setAttribute(Qt::WA_TranslucentBackground);

        1. window_flags.zip
          2 kB
          Nodir Temirkhodjaev
        2. window-flags-bad.jpg
          7 kB
          Nodir Temirkhodjaev
        3. window-flags-good.jpg
          11 kB
          Nodir Temirkhodjaev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nodir.temir Nodir Temirkhodjaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes