PDA

View Full Version : use "FramelessWindowHint " still have gray line around window



linste0815
4th June 2010, 06:48
Hi,

I have a problem on SDK (OS:Windows Vista).
I use setWindowFlags((this->windowFlags()|Qt::FramelessWindowHint) ,but it still have gray line around window.
Can somebody reply this problem?

note: you can see the picture in attachment.

linste0815

soulless
4th June 2010, 10:27
just try


setWindowFlags(Qt::FramelessWindowHint);

do you have a widget over another widget?

PLan2010
4th June 2010, 21:49
Seem to remember I had a border too, think I turned it off using a stylesheet -



QGraphicsScene scene;
QGraphicsView view(&scene);
...
view.setStyleSheet("background: transparent; border: none");
...

linste0815
6th June 2010, 10:31
Dear Plan2010,

Thank you very much, it really great help...
Yes, it really hide the gray window ...

Hi soulless,
yes, a widget over another widget ...

linste0815