Question about MDI applications
Pascal Francq
pfrancq at ulb.ac.be
Tue May 14 11:00:29 BST 2002
On Tuesday 14 May 2002 11:04, Pascal Francq wrote:
> Hi,
> I have create a MDI application from the template provides by KDevelop. By
> default, all the windows created are deleted when the application is
> deleted and not when the windows are closed. I have try to insert a 'delete
> pView' instructions in the method 'eventFilter(QObject* object, QEvent*
> event)' but it seems that is generating somme memory problems somewhere
> else. What it is the right way to delete a window when it is closed?
> Thanks in advance.
The problems came from the fact the QList of views is by default
setAutoDelete(false). So, I turn it to true, and it seems to work right now.
--
Ir Pascal Francq
Researcher
Université Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 47 24
ICQ: 91206668
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list