1

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.

user2123079
  • 656
  • 8
  • 29

1 Answers1

1

Try to use this combination of flags:

setWindowFlags(Qt::Window | Qt::FramelessWindowHint)
Kirill Chernikov
  • 1,387
  • 8
  • 21
  • Yes, that helps, but I need resizable window. I have already tried that, but forgot to say this. But thank you! – user2123079 Aug 23 '16 at 09:47
  • You can implement such functionality by yourself. For help, you can look for this artical: http://stackoverflow.com/questions/5752408/qt-resize-borderless-widget – Kirill Chernikov Aug 23 '16 at 10:11