Results 1 to 9 of 9

Thread: Single Application Instance

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Single Application Instance

    Quote Originally Posted by lni View Post
    I thought you can only have 1 instance of QApplication? That instance is stored in qApp as global vairable? Do I misunderstand you?

    So, do

    if ( qApp != NULL ) {
    // application has been created
    } else {
    // create an application
    }
    After reading the page at http://doc.trolltech.com/solutions/4...ion/index.html, I understand what it is. But why I don't have QtSingleApplication in my package?

    I think it is very useful class. Is it possible to detect a running application in different machine? I am currently having several processes across different machines writing to same files, and I have to create/delete a file.lock to prevent the processes writing to the same file at the same time...

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Single Application Instance

    Quote Originally Posted by lni View Post
    But why I don't have QtSingleApplication in my package?
    It's only for commercial use: http://www.qtsoftware.com/products/a...leapplication/

Similar Threads

  1. Replies: 5
    Last Post: 9th June 2008, 11:21
  2. Only let one instance of the application run
    By chrisdsimpson in forum Newbie
    Replies: 1
    Last Post: 9th April 2008, 21:30
  3. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  4. Best Practice on single source Qt Desktop/Qtopia Core/QPE application
    By izico in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 31st March 2007, 07:08
  5. Replies: 5
    Last Post: 16th January 2006, 05: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
  •  
Qt is a trademark of The Qt Company.