stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
538 stars 85 forks source link

menubar下拉菜单遮挡menubar #83

Open RedFree opened 4 months ago

RedFree commented 4 months ago

点击menu 按钮,下拉菜单会遮挡menubar

屏幕截图 2024-05-19 221923

请问这个是啥原因

SineStriker commented 4 months ago

用的哪个qt版本,什么系统

RedFree commented 4 months ago

使用的Qt6.5.3版本,系统是windows 11,但是跑example是正常的。我把example的代码完全拷贝过去,运行之后还是有遮挡,不知道是否还存在其他的细节需要注意

SineStriker commented 4 months ago

看readme,用6.6.2及以上

RedFree commented 4 months ago

嗯嗯,好的,我先试下升级版本

MicroFalcons commented 4 months ago

我用的QT6.7,程序刚运行还是正常的,但拖动窗口或者调整某些尺寸后,menu菜单就会遮住menu

这是 刚开始运行、拖动调整右边或下边尺寸 的效果 image

这是 拖动位置、窗口最大化、最大化后恢复、拖动调整左边或上边尺寸 的效果 image

wangwenx190 commented 4 months ago

你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看

wangwenx190 commented 4 months ago

最大化最小化我也试过了,没问题。

RedFree commented 4 months ago

我升级到6.6.3之后我的程序menu正常了。有点疑惑,6.5.3 example的menu是正常的,我的程序会出现遮挡。

1

MicroFalcons commented 4 months ago

有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。

------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.**@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83)

你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

SineStriker commented 4 months ago

有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。 ------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.**@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

执行 windowAgent = new QWK::WidgetWindowAgent(this); 就会出现什么错误呢?你对头文件做了什么修改?这些信息都不提供怎么帮你分析问题?

MicroFalcons commented 4 months ago

用DLL的时,执行程序执行到这里时,会出现一个非法地址写入的错误。但我源码直接嵌入工程又不会出问题。我有点怀疑是不是我编译dll的时候那个环节出问题了(dll编译都还是通过了的)还是Qt的bug。 

白展堂 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午4:35 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83)

有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。 … ------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

执行 windowAgent = new QWK::WidgetWindowAgent(this); 就会出现什么错误呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

MicroFalcons commented 4 months ago

编译的第一步,我把camke 后面的 -G "Ninja Multi-Config" 参数去掉了,我没装Ninja。但后面两步都是执行成功了的

白展堂 @.***

 

------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午4:35 @.>; @.**@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83)

有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。 … ------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

执行 windowAgent = new QWK::WidgetWindowAgent(this); 就会出现什么错误呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

SineStriker commented 4 months ago

用DLL的时,执行程序执行到这里时,会出现一个非法地址写入的错误。但我源码直接嵌入工程又不会出问题。我有点怀疑是不是我编译dll的时候那个环节出问题了(dll编译都还是通过了的)还是Qt的bug。  白展堂 @.   ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午4:35 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。 … ------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> 执行 windowAgent = new QWK::WidgetWindowAgent(this); 就会出现什么错误呢? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

在哪儿出错的,有没有debug的截图

MicroFalcons commented 4 months ago

白展堂 @.***

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午5:09 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83)

用DLL的时,执行程序执行到这里时,会出现一个非法地址写入的错误。但我源码直接嵌入工程又不会出问题。我有点怀疑是不是我编译dll的时候那个环节出问题了(dll编译都还是通过了的)还是Qt的bug。 白展堂 @.***
… ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午4:35 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 有可能是我Qt的问题,我Qt是6.7.0,creator是11.0.3,我开始用动态库测试example时,执行第一个代码 windowAgent = new QWK::WidgetWindowAgent(this);时就会出现错误。后来实在没法了,就改了头文件,直接将源码嵌入到工程中就可以运行了。除了头文件变了一下外,没有修改任何代码。example也没修改过哟。 … ------------------ 原始邮件 ------------------ 发件人: "stdware/qwindowkit" @.>; 发送时间: 2024年5月21日(星期二) 下午2:14 @.>; @.@.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 你肯定改了什么东西了,我用6.7.0正式版测过了,窗口尺寸怎么改都没这个问题。你用原版demo测测看 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> 执行 windowAgent = new QWK::WidgetWindowAgent(this); 就会出现什么错误呢? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

在哪儿出错的,有没有debug的截图

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

SineStriker commented 4 months ago

什么都看不见

MicroFalcons commented 4 months ago

微信聊吧。13778052315 

白展堂 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午5:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83)

什么都看不见

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

wangwenx190 commented 4 months ago

没法复现。最好提供最小的可复现工程。

SineStriker commented 3 weeks ago

微信聊吧。13778052315  白展堂 @.   ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年5月21日(星期二) 下午5:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [stdware/qwindowkit] menubar下拉菜单遮挡menubar (Issue #83) 什么都看不见 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

有空的话加一下README里QQ群,这个问题值得研究一下