Re: Window not responding
How do you display the second window? do you use show()?
Re: Window not responding
Quote:
Originally Posted by
marcel
How do you display the second window? do you use show()?
Yes.
in the .h file
Code:
private:
ObjectName * newWindow;
in the .cpp
Code:
newWindow = new ObjectName(this);
newWindow->show();
Re: Window not responding
Do you intercept any kind of events for the first window?
What do you do in the first place to make the first window not respond, while the second is visible?
Re: Window not responding
Quote:
Originally Posted by
marcel
Do you intercept any kind of events for the first window?
What do you do in the first place to make the first window not respond, while the second is visible?
No first window is just a main screen to start one of 3 modes.
I made the second window (window modal).
Re: Window not responding
Qt::WindowModal
Quote:
The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.
After you close this modal window( I assume you actually hide it ), do you also delete it? This would solve your problem.
If you can't delete it and you just hide it, at least change it's modality to non modal, to stop blocking its parent.
Re: Window not responding
So, when I close it using the close() function or the x icon on the title bar, it is just hiding it, not deleting it?
Edit: I guess reading the API would help. Does the x icon issue a close()?
Re: Window not responding
No, I just assumed that when you close it you hide it for later use... :)
In this case...No idea at all why you get this problem...
Do you have to set it WindowModal?
Re: Window not responding
Quote:
Originally Posted by
marcel
No, I just assumed that when you close it you hide it for later use... :)
In this case...No idea at all why you get this problem...
Do you have to set it WindowModal?
Well, I set it to windowModal in designer. I don't change it in the code I write.
Re: Window not responding
Maybe setting attribute Qt::WA_DeleteOnClose would help.
Re: Window not responding
Thanks....I will give it a try.