We derive our application from QtSingleApplication (it derives from 
QApplication). We acquired the code some time ago, no doubt URLs have changed 
since then... We are presently using Qt 5.9.5. I had compile errors when I 
first downloaded it, described in https://bugreports.qt.io/browse/QTSOLBUG-171. 
I see this in my bug report:

I cloned it from http://qt.gitorious.org/qt-solutions August 6, 2013.

Five years later it's still working for us.

-John Weeks

> On Apr 17, 2018, at 5:26 AM, Samuel Gaist <samuel.ga...@edeltech.ch> wrote:
> 
> 
>> On 17 Apr 2018, at 12:33, Hamish Moffatt <ham...@risingsoftware.com> wrote:
>> 
>> Is there any support built-in for making an application a singleton (ie you 
>> can't launch multiple instances), or does anyone have a recipe?
>> 
>> I'd actually like a second launch to signal the first, passing on any 
>> parameters, much like the web browsers do. (eg link clicked from an 
>> application creates new tab in existing browser instance.).
>> 
>> I need this to work on Windows and Mac.
>> 
>> 
>> Hamish
>> 
>> _______________________________________________
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> 
> 
> Hi,
> 
> Just in case, the qtsolution module is available at 
> http://code.qt.io/cgit/qt-solutions/qt-solutions.git/ with build fixes for Qt 
> 5.
> 
> The QtSingleApplication module is working with Qt 5. However it doesn’t 
> provide support for QGuiApplication but it’s not hard to add it if needed.
> 
> Cheers
> Samuel
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to