[Qt-interest] Simple Signal Slot Failing
Frank Hemer
frank at hemer.org
Wed Nov 11 17:37:40 CET 2009
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
More information about the Qt-interest-old
mailing list