Giter VIP home page Giter VIP logo

Comments (5)

zhiyiYo avatar zhiyiYo commented on May 23, 2024

原图是三级菜单吗

from pyqt-fluent-widgets.

TwooSix avatar TwooSix commented on May 23, 2024

原图是三级菜单吗

异常显示的是二级菜单,预处理菜单下的都是Ation,但实际三级菜单也会异常显示。
对了,图中两张图片对应的是两个不同的menu实例。但这似乎没有影响,我后续测试的时候在同一个实例下也能复现bug。
复现方法是:右键打开一级菜单,鼠标滑过子菜单,在它播放弹出动画但未完全打开的时候快速的到其他地方右键再次打开一级菜单。
在两个不同实例的时候更容易复现bug。

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 23, 2024

菜单实例的生命周期和窗口一样长吗?如果只在 contextMenuEvent 里面创建菜单还会有这个问题吗

from pyqt-fluent-widgets.

TwooSix avatar TwooSix commented on May 23, 2024

菜单实例的生命周期和窗口一样长吗?如果只在 contextMenuEvent 里面创建菜单还会有这个问题吗

原本是一样长,尝试只在Event里创建的话复现概率会小很多,但还是有小概率出现。
应该不会是我程序的问题吧?我切换到Qmenu的时候一直是没能复现成功🤔

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 23, 2024

QMenu 不会有这个问题的,因为我是用 QListWidget 模拟的菜单,所以会有一些细节问题,脑壳疼

from pyqt-fluent-widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.