Skip to content

MacOS - Qt 6.8.2 - The content of the window is offset by the size of the title bar in the QWidget version #166

Open

Description

@puziok

System: macOS Sonoma
Qt Version: 6.8.2

As in the title, in qt 6.8, changes were made that break QWidget version of QWK. Everything works okey with Qt 6.6.3. QML version works fine on both Qt versions.

Qt 6.8.2 (space above custom title bar is not interactive and window can't be dragged by grabbing it)
Image

Qt 6.6.3
Image

Activity

  1. zhiyiYo commented on May 2, 2025

    @zhiyiYo

    Try the following code:

    setAttribute(Qt::WA_ContentsMarginsRespectsSafeArea, false);
  2. puziok commented on Jul 23, 2025

    @puziok
    Author

    It is a solution but it is only available starting from Qt 6.9.

  3. nuttyartist commented on Oct 12, 2025

    @nuttyartist

    @zhiyiYo That helped me a lot, thanks!

  4. added a commit that references this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions