Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Bringing the instance of Qt Application to the front when another instance is tried to run
Forum Updated to NodeBB v4.3 + New Features

Bringing the instance of Qt Application to the front when another instance is tried to run

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 166 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.
  • S Offline
    S Offline
    supratik123
    wrote on last edited by
    #1

    I have designed an application using Qt. The root window is designed in qml . My objective is when i have an instance of an application already running and user tries to trigger another instance of the same application, the already running instance of the application should come into focus i.e it should get opened and the second instance shouldnt run. I tried QWindow::AutomaticVisibility but it didnt help

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      There's an old QtSolution helper named QtSingleApplication that would fit your case. You should check it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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