Page 1 of 2 12 LastLast
Results 1 to 20 of 39

Thread: Single instance

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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
    691
    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
    691
    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
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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.


  8. #8
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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.


  10. #10
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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.


  12. #12
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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

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

    Default Re: Single instance

    So how do you add a folder to a list of directories where your compiler looks for includes?
    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.


  14. #14
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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
    So how do you add a folder to a list of directories where your compiler looks for includes?
    In the project settings, I don't know why you think to me as a student when I'm not. Is not the first additional path that I added to the
    project. Simply I can not find such include, maybe it's part of the commercial version of Qt that I don't have.
    Franco Amato

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

    Default Re: Single instance

    Who said it was part of Qt?
    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.


  16. #16
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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
    Who said it was part of Qt?
    The link sent to me http://doc.qt.nokia.com/solutions/4/...plication.html
    by Lykurg. I think that's is part of Qt
    Franco Amato

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

    Default Re: Single instance

    Then you think wrong. Look at the URL. And then open the URL and click the "Home" link.
    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.


  18. #18
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    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
    Then you think wrong. Look at the URL. And then open the URL and click the "Home" link.
    So where can I download it?
    Franco Amato

  19. #19
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Single instance

    From gitorious

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

    Default Re: Single instance

    Quote Originally Posted by franco.amato View Post
    So where can I download it?
    Look at the URL. Work your way up the url. If you don't want to be treated as a student then stop asking a question every time you stumble upon an obstacle. A student is a person who still has a lot to learn. You're at exactly the same stage for the last 2 years or more.
    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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.