Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator's QtSingleApplication not so single?!
Forum Updated to NodeBB v4.3 + New Features

QtCreator's QtSingleApplication not so single?!

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreatorsingle instance
4 Posts 3 Posters 352 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.
  • Pl45m4P Offline
    Pl45m4P Offline
    Pl45m4
    wrote on last edited by Pl45m4
    #1

    I've been digging QtCreator's source code for quite some time to see how some things work, how they are implemented and to get some inspiration :)
    So far, so good.
    QtC's app instance is a QtSingleApplication, which, AFAIK, should prevent the user from starting multiple instances of the program at the same time?! Right?!

    GitHub-Source

    But I'm able to create a bazillion instances of QtCreator...

    de470f8a-6685-457b-939f-ba4b373f01c0-grafik.png

    Am I misinterpreting something or is this not working as expected?
    As long as I can remember, it was possible to start QtCreator multiple times?!


    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

    ~E. W. Dijkstra

    1 Reply Last reply
    0
    • cristian-adamC Online
      cristian-adamC Online
      cristian-adam
      wrote on last edited by
      #2

      Start Qt Creator with the -client command line argument to open the first instance of Qt Creator.

      Pl45m4P 1 Reply Last reply
      2
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Just because you inherit from this class doesn't mean you can't start more than once.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • cristian-adamC cristian-adam

          Start Qt Creator with the -client command line argument to open the first instance of Qt Creator.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @cristian-adam

          Now it behaves like expected :)

          @Christian-Ehrlicher I'm not after to reproduce this behavior in my app, I just stumbled upon this part in the code of QtC and thought about it. Because you can usually open multiple instances of QtCreator at the same time.
          So you need extra arguments to activate the single App behavior... I did not know that :)


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • Pl45m4P Pl45m4 has marked this topic as solved on

          • Login

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