Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtSingleApplication
Qt 6.11 is out! See what's new in the release blog

QtSingleApplication

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 9.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    willypuzzle
    wrote on last edited by
    #1

    How you can see "here":http://doc.qt.nokia.com/solutions/4/qtsingleapplication/qtsingleapplication.html QtSingleApplication is a class of Qt framework but I can't include it in normal way because it isn't in my /usr/local/include directory, can I only download the source and compile it by myself? where can I get the source?
    And I suppose this isn't a isolated case... there are some classes so.
    Best Regards
    Willy

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You can find the sources on http://qt.gitorious.org/qt-solutions.

      QtSingleApplication was never a part of the Qt libs. It was only provided by Trolltech/Nokia as part of the Qt Solutions addons, so no includes in /usr/local/include. You can now download the sources from gitorious, as stated on the "Qt Solutions":http://qt.nokia.com/products/qt-addons/solutions-archive/ page.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • W Offline
        W Offline
        willypuzzle
        wrote on last edited by
        #3

        Thanks again.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          astodolski
          wrote on last edited by
          #4

          Is this the only way to prevent multiple instances of a QApplication? I am very dissapointed that there is no solution other than getting add-ons.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            willypuzzle
            wrote on last edited by
            #5

            You can use shared memory (QSharedMemory) and system semaphore (QSystemSemaphore)

            1 Reply Last reply
            0
            • A Offline
              A Offline
              astodolski
              wrote on last edited by
              #6

              How is that implemented?

              1 Reply Last reply
              0
              • W Offline
                W Offline
                willypuzzle
                wrote on last edited by
                #7

                First you have to know what shared memory is, you can found same explanation here: http://en.wikipedia.org/wiki/Shared_memory

                Here, there is an example how QSharedMemory works on Qt: http://qt-project.org/doc/qt-4.8/ipc-sharedmemory.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  astodolski
                  wrote on last edited by
                  #8

                  I meant how is it implemented in the context of QApplication. I know what shared memory is! Qt seems to have its own way of doing things.

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    willypuzzle
                    wrote on last edited by
                    #9

                    QApplication doesn't manage multiple instances, by QSharedMemory you can workaround it.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved