PDA

View Full Version : Why do I still see you?



Pembar
20th May 2009, 14:23
Hey guys,

I have the following code:



QApplication a(argc, argv);
Widget w;
w.setMask(QRegion(0,0,w.width(),w.height()));
w.show();
return a.exec();


The widget still shows up, without the title bars. I find this strange, can someone explain this to me? Thanks

Ginsengelf
20th May 2009, 15:22
Your region masks the whole widget, so of course it ist completely visible.

Ginsengelf