Results 1 to 2 of 2

Thread: How to prevent multiple executables from application

  1. #1
    Join Date
    Dec 2010
    Posts
    76
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to prevent multiple executables from application

    I am curious what would be the proper way to prevent a user from opening multiple executables of the same application. The reason I desire this type of functionality is because files are being manipulated by the executable and if another executable fires up and starts manipulating the files it could cause some issues. What is the best way to make sure that, if the executable is already running, the program either focuses on the current executable or denies the 2nd one from being launched?

    Thanks for any help!

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to prevent multiple executables from application

    You can try to use QtSingleApplication from Qt Solutions.

Similar Threads

  1. Replies: 1
    Last Post: 18th August 2010, 13:39
  2. How to filter executables in linux.
    By sudhansu in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2010, 16:35
  3. Problem with executables
    By Dante in forum Qt Programming
    Replies: 4
    Last Post: 29th March 2009, 17:06
  4. [Q] how to build Qt executables only?
    By khopper in forum Installation and Deployment
    Replies: 4
    Last Post: 1st December 2008, 16:00
  5. How to run my qt4 application programms(executables)
    By locus in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2007, 17:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.