Results 1 to 20 of 39

Thread: Single instance

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Single instance

    Hi to all,
    is there any ways to have a single instance of the same application?
    Regards
    Franco Amato

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Single instance


  3. #3
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Single instance

    Quote Originally Posted by squidge View Post
    Hi I included QtSingleApplication header and the compiler gives error
    Franco Amato

  4. #4
    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 instance

    Quote Originally Posted by franco.amato View Post
    the compiler gives error
    No way!!!!!

  5. #5
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Single instance

    Quote Originally Posted by Lykurg View Post
    No way!!!!!
    Why shouldn't be possible? So I'm crazy.
    Here a screenshot singleinstance.jpg.
    Regards
    Franco Amato

  6. #6
    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 instance

    Even after you post the screen shot:

    No way!


    Translation: show us the error, crystal balls are after all not anymore as good as they used to be in the 1920th.

  7. #7
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Single instance

    Quote Originally Posted by Lykurg View Post
    Even after you post the screen shot:

    No way!


    Translation: show us the error, crystal balls are after all not anymore as good as they used to be in the 1920th.
    The error is:
    'QtSingleApplication': No such file or directory at the line: #include <QtSingleApplication>
    Franco Amato

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Single instance

    Ok, franco, let's play a teacher-student stunt. My question is - what to do to make an include file visible for the compiler in a Qt project?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Single instance

    Quote Originally Posted by wysota View Post
    Ok, franco, let's play a teacher-student stunt. My question is - what to do to make an include file visible for the compiler in a Qt project?
    Include the folder, I searched such file in my Qt installation and I can not find it
    Franco Amato

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Single instance

    What do you mean by "include the folder"? What folder? And include it where?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Single instance

    Quote Originally Posted by wysota View Post
    What do you mean by "include the folder"? What folder? And include it where?
    include the folder to the 'additional include path' of my visual studio.
    The folder where such include should be stored
    Franco Amato

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Single instance

    Let me explain what Lykurg meant - in his short ironic post he noticed that your post that the compiler gives you an error doesn't bring you (or anybody else) even a step closer to solving the problem because you are not providing any relevant information. A possible response to "the compiler gives error" might be "then fix it". Then you would probably say "How?" and Lykurg would say "I don't know" or something similar. By the way, your screenshot also qualifies for a "no way!" response. If you want help, don't expect us to guess what your problem looks like.

    Edit: Yeah, well... I was right about the "no way" thing about a screenshot
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Single Application Instance
    By BadKnees in forum Qt Programming
    Replies: 8
    Last Post: 4th November 2014, 14:57
  2. Replies: 2
    Last Post: 3rd May 2010, 10:57
  3. Replies: 3
    Last Post: 26th March 2010, 07:26
  4. single instance app
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2009, 08:42
  5. Replies: 2
    Last Post: 8th October 2006, 16:49

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.