View Full Version : New window closes automatically

Gavin Harper
25th September 2010, 15:42
I have been searching the documentation but cannot find anything but am unsure what I should be searching for.

When I open a new window created by "Add New" - "Qt" - "Qt Designer Form Class", I want to attatch that window to a toolbar option.

When I attempt to show this, upon clicking the appropriate toolbar option a window appears and instantly closes.

Can someone please let me know what it is that I should be looking for?

I don't need code solutions but rather pointed toward an appropriate section of documentation.

Thank you

25th September 2010, 15:43
Allocate memory for the new window on the heap, using pointer and new (don't forget to pass a pointer to your main window as a parent for the new window)