Skip to content

QDialog的最大化功能异常 #232

Open

Description

@yangrcaaa

Taking the example program as an example, when I change the example to inherit from QDialog, the maximize button in the sample program cannot maximize the window; it only moves the window slightly downward with a white border added above; In the example, inheriting from QWidget/QMainwindow does not cause this issue.
Additionally, in the sample program, when you click the Pin button, although the window can be fixed, the overall window moves down by a certain distance.

Activity

  1. wangwenx190 commented on Jun 20, 2026

    @wangwenx190
    Collaborator

    What's your Qt version? Maybe you can try a different version. Sounds like a Qt bug

  2. yangrcaaa commented on Jun 29, 2026

    @yangrcaaa
    Author

    What's your Qt version? Maybe you can try a different version. Sounds like a Qt bug

    6.8.3, I haven't tried using a different Qt version yet, but I might try in the future

  3. wangwenx190 commented on Jul 1, 2026

    @wangwenx190
    Collaborator

    demo里很多代码都是针对QMainWindow设计的,你直接改成QDialog不一定行,你可以自己建一个工程,用QDialog尝试

  4. yangrcaaa commented on Jul 1, 2026

    @yangrcaaa
    Author

    我最开始就是在自己的项目中使用的,也新建过工程进行尝试,目前能确认qt6.8.3 qdialog与本项目存在兼容性问题😃

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