qtdevs / FramelessHelper

Qt based frameless window class, full features.
MIT License
311 stars 96 forks source link

Facing issues on Windows 10, Qt 5.12.1 MSVC 2015 & MSVC 2017 #7

Open shujaatak opened 5 years ago

shujaatak commented 5 years ago

I made no changes to the source code and I get the result shown in the below screenshot. I noticed that I can drag the window by holding mouse on the black bar, the buttons events occur in the black location where the buttons should be located however the icons are displaced below it.

Frameless

barry-ran commented 5 years ago

same question , you fix it ?

shujaatak commented 5 years ago

same question , you fix it ?

Yet not.

jaredtao commented 5 years ago

i use Qt5.12.4 msvc 2017, Win10 1903, no this question. 1

barry-ran commented 5 years ago

good, Qt5.12.2 ,msvc 2017, Win10is also perfect. QT should have solved this problem

DarinLi commented 5 years ago

it's not good , i use Qt5.13.1 msvc 2017, Win10 1903, i have the same problem.

ericzh86 commented 4 years ago

sorry, i can't fix this, it's caused by windows opengl driver. it has compatibility problem with windows WS_THICKFRAME flag. it happened in Windows 7. it's first time i heard in Windows 10. it's not about me, or Qt, it's problem of Windows.

barry-ran commented 4 years ago

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

ericzh86 commented 4 years ago

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

barry-ran commented 4 years ago

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

win10, vs2017, Qt5.12.1 is not good, Qt5.12.2 is correct

ericzh86 commented 4 years ago

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

win10, vs2017, Qt5.12.1 is not good, Qt5.12.2 is correct

it looks like i have to test every single version in every operating system... orz... orz... orz...

lvzhaobing commented 4 years ago

在main 函数设置如下属性: QApplication::setAttribute(Qt::AA_UseOpenGLES); 可以临时解决这个OpenGL 渲染错位的问题,应该是比 Intel(R) HD Graphics 5000 更早的集成显卡会出现黑色边框。 运行环境:Qt5.14.1 + VS2019 + Windows10 1909 +Intel(R) HD Graphics 4600 参考:https://bugreports.qt.io/browse/QTBUG-40485?focusedCommentId=376505&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-376505