[Qt-interest] [SOLVED] Howto get a nested QMainWindow shows up ?

Aaron Lewis aaron.lewis1989 at gmail.com
Wed Mar 3 09:56:34 CET 2010


> The object my gets destroyed right after show was called. What you need
> to do is to create my on the heap:
>
>   
>> void queryer::on_Connect()
>> {
>>     Getpass *my = new Getpass(this);
>>     my->show();
>> }
Yeah , it's because "my" destroys right after show() is called.


Thanks Ulf, that helps ;-)


-- 
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode




More information about the Qt-interest-old mailing list