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

Black bar instead of title bar on Intel Graphics when you have a QOpenGLWidget #36

Open
vtronko opened this issue Sep 12, 2019 · 6 comments

Comments

@vtronko
Copy link

vtronko commented Sep 12, 2019

frameless-bug

Black rectangle is just 50x50 QOpenGLWidget.

@vtronko vtronko changed the title Black bar instead of title on Intel Graphics Black bar instead of title bar on Intel Graphics when you have a QOpenGLWidget Sep 12, 2019
@vtronko
Copy link
Author

vtronko commented Sep 12, 2019

What's more interesting, hitboxes are correct (it means it receives clicks exactly where it should) while painting is done with offset.

It's related to https://bugreports.qt.io/browse/QTBUG-40485?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true

Is there any adhoc solution to workaround this?

There's an answer in closed #19 thread but it's not clear.

@JosephCoppola-FW
Copy link

JosephCoppola-FW commented Mar 24, 2020

I've been suffering from this as well. Any luck on your end on finding a solution @vtronko?

I've noticed resizing the window after this issue occurs fixes the offset. So I've been trying to figure out if I can trigger a windows event that forces a repaint or something.

What is very odd is I only see this if I move my app across monitors with the same level of text scaling. If they don't have the same level of text scaling, the offset does not occur.

@vtronko
Copy link
Author

vtronko commented Mar 24, 2020

@JosephCoppola-FW no, I just implemented a fallback version for unsupported chipsets -_- Wasted too much time on this one

@JosephCoppola-FW
Copy link

Yeah this one is killing us a bit.

@MisterPascal
Copy link

Hei, is there any solution to this bug? How do you manage it?

@MisterPascal
Copy link

If anyone comes here again - you can find the bug and a solution here: https://bugreports.qt.io/browse/QTBUG-90701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants