Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the window can't be moved if call this->winId() in the widget #50

Open
tinybug opened this issue Feb 26, 2024 · 2 comments
Open

the window can't be moved if call this->winId() in the widget #50

tinybug opened this issue Feb 26, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@tinybug
Copy link

tinybug commented Feb 26, 2024

If I add this line here the window can't be moved by dragging the title bar:

image

Window can't be moved if I drag the title bar:

image

Built by qt 5.15.10_msvc2019_64, this bug maybe happen in the Qt source code, who can help with this bug? Thanks.

@SineStriker
Copy link
Contributor

This is a big problem, a frameless window will not receive WM_HITTEST if it has a native child window, I have been researching for a long time but now can't find a solution. If you really need to move an outside widget into the frameless window, you could wrap the widget with another frameless container.

@tinybug
Copy link
Author

tinybug commented Feb 29, 2024

@SineStriker I found this bug because of I want to use mpv player in the Qt, mpv need to call the winId() to get the id for it. Yes, I also found that will not get WM_HITTEST event when I call winId(), and I think it may has some bugs in the Qt source code, but I have no spare time to debug the Qt source code, I will try to figure it out if I have time. Anyway, thank you for your efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants