Ah, I see, you meant that you are currently using a stacked widget as a workaround for not having windows.

As far as I can see you have two options:
1) implement your own "windowing system" inside your application
2) use an existing windowing system and the appropriate QPA for Qt

Cheers,
_