[Qt-interest] Simple Signal Slot Failing
Raja Rokkam
rokkamraja at gmail.com
Wed Nov 11 18:00:51 CET 2009
Hi,
I did check the whole code if I have done such a thing but alas, I
couldnt find any place where the same slot is being called again.
Thanks,
Raja.
On Wed, Nov 11, 2009 at 10:07 PM, Frank Hemer <frank at hemer.org> wrote:
> On Wednesday 11 November 2009 17:11:35 Raja Rokkam wrote:
> > Hi All,
> >
> > I have an UI -> a storage engine ( interface for reading/writing
> on
> > to disk) -> server ( which launches a process).
> >
> > So, when I launch the UI, it loads certain config files by sending a
> signal
> > to "Storage Engine" which will call the server and another process gets
> > launched.
> >
> >
> > This other process writes the config file. It is created as a
> > QProcess::startDetached in Mac and ShellExecute is used for Windows.
> >
> > Now, after writing the config file, server sends a signal back to storage
> > engine which in turn signals the UI to read the config file and show it
> to
> > user.
> >
> >
> > This whole setup works fine in OSX but in windows strangely, my logs show
> > UI slot for reading is called thrice when infact only once it is being
> > called in OSX. I am not calling this SLOT anywhere else in the code. and
> > more strangely the SIGNAL from server to storage engine is being emitted
> > only once as seen from the slots.
> >
> > Can anyone provide me possible pointers to debug this issue ?
>
> This could be the cause when you have connected the (same) slot more than
> once. Maybe just by running the line of code where 'connect' is placed
> twice.
>
> Frank
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091111/abd50c87/attachment.html
More information about the Qt-interest-old
mailing list