Reputation: 686
My window class is inherited from QGraphicsView. In constructor of my class I set
setWindowFlags(Qt::CustomizeWindowHint);
But after showing my window there is a strange white line on top that I can't remove. Where is a problem? Did I missed something?
UPD1: screenshot
UPD2: I also tried on Qt5.6.1 - the same result. Qt[5.4.2||5.6.1], Win10(x64)
UPD3: I setted red backround for my window. And here is a new screen that shows better my situation.
UPD4: Well, seems it's a Win10 Bug.. My friends tried my app in older Windows and it works as I expect.
Upvotes: 1
Views: 282
Reputation: 1420
Try to use this combination of flags:
setWindowFlags(Qt::Window | Qt::FramelessWindowHint)
Upvotes: 1