[Qt-interest] A couple of Issues in Qt Application

Raja Rokkam rokkamraja at gmail.com
Thu Oct 29 19:37:32 CET 2009


Hi All,

1.)  I am trying to implement QSharedMemory to prevent running multiple
instance of my application. The code works fine in WIndows but in Unix it
works fine as long as there is no crash. If there is a crash the
QSharedMemory survives the crash and so later no instance is spawned until
PC is rebooted.*
Is there any solution for this issue or any other simpler and cleaner
solution ?*


2.) I am trying to catch SIGINT, SIGTERM and SIGHUP signals in my code and
cleanly exit the application instead of a crash whenever such signals are
passed due to various reasons. However, this code works fine in Unix but I
am not sure if it is going to work in windows as* taskkill /IM app.exe says
it kills the application but I find the app.exe running and also no signal
being catched by code*. Any pointers in this regard ? I strongly prefer not
using windows.h .* I know we have WM_ENDSESSION but any other way apart from
this ? *


3.) My app.exe draws a border over the Windows taskbar. However if I click
on desktop, the application goes out of focus and task bar comes up and
border goes behind. *I want the border to always stay on top of taskbar. *Any
solutions for this ? All of my widgets are with WindowStaysOnTopHint only. I
made the border window class a singleton object derived from QWidget and
also tried catching the focusOutEvent but I guess I am making some mistake
somewhere. The same code works fine in MACOSX.


Any solutions to either of the issues will be highly appreciated.


Thanks,
Raja.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091030/bd7b1de0/attachment.html 


More information about the Qt-interest-old mailing list