[Qt-interest] QMainWindow: Prevent mouse from leaving.

R. Reucher rene.reucher at batcom-it.net
Thu Oct 29 08:37:17 CET 2009


On Thu, 29 Oct 2009 08:12:31 +0100, Jakub Stasiak wrote:
>> Just make sure to grab the mouse outside of your main-window's
>> constructor.
> Every time I used grabMouse() I called it outside constructor, luckily.
> But could you explain why it shouldn't/can't be done inside contructor?
Well, I'm not sure -- it's just an experience from "trial & error". It 
seems the object needs to be fully instantiated before it can do things 
like that :). The Trolls may have a better / a real explanation.
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/




More information about the Qt-interest-old mailing list