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

Windows: Transparent frameless window has a frame with titlebar

    XMLWordPrintable

Details

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

    Description

      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);

      Attachments

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

        Activity

          People

            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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes