[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KPartManager won't emit the partRemoved signal
From: "Brooks, Joshua CIV NAVAIR" <joshua.brooks () navy ! mil>
Date: 2003-10-30 18:26:02
[Download RAW message or body]
--===============0959741833==
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C39F13.45F34C04"
This is a multi-part message in MIME format.
I try connecting the KPartManager to catch in a slot defined by me when =
one of my parts gets destroyed like this:
connect(partManager, SIGNAL( partRemoved(KParts::Part *)), this, =
SLOT(catchPartDestroyed()));
I also try to catch the QObject destroyed signal, but that doesn't work =
either:
connect(partManager, SIGNAL( destroyed(), this, =
SLOT(catchPartDestroyed()));
Does anyone know what I'm doing wrong? Or is there a clever way to =
catck when a QObject gets destroyed? What am I missing?
Josh
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6396.0">
<TITLE>KPartManager won't emit the partRemoved signal</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I try connecting the KPartManager to catch in \
a slot defined by me when one of my parts gets destroyed like this:</FONT> \
</P>
<P><FONT SIZE=2 FACE="Arial">connect(partManager, SIGNAL( \
partRemoved(KParts::Part *)), this, SLOT(catchPartDestroyed()));</FONT> \
</P>
<P><FONT SIZE=2 FACE="Arial">I also try to catch the QObject destroyed \
signal, but that doesn't work either:</FONT>
<BR><FONT SIZE=2 FACE="Arial">connect(partManager, SIGNAL( destroyed(), \
this, SLOT(catchPartDestroyed()));</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Does anyone know what I'm doing wrong? \
Or is there a clever way to catck when a QObject gets destroyed? What \
am I missing?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Josh</FONT>
</P>
</BODY>
</HTML>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
--===============0959741833==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic