Is there a way to differentiate between the close() issues by the "X" button and a call to close() from outside the widget?

What I want is a window with a border and title bar, but not allow the window to be closed by the user. I have tried changing the window flags, but I cannot seem to get a combination were the is a border with no X.

Any suggstions either way?

I am using SUSE 10.1 and QT4.2

Thanks...