Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8981611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:22:49+00:00 2026-06-15T20:22:49+00:00

I have an application in Qt. It is a window. This window has certain

  • 0

I have an application in Qt. It is a window. This window has certain data that is displayed.

This window is launched from another application.

It is quite possible that the application be launched from different instances of the other application, with different data.

Let’s say I already have one instance of the application running, how do I ensure that if the application is called again, it should not launch another instance, and should instead refresh the data in the already existing window with the new set?

In a nutshell, One application having a single window, which displays refreshed data passed along with a different call.

EDIT : I checked it out. It should be sufficient to solve my problem. However, I cannot find the relevant files in my Qt installation. I learnt it was never a part of Qt solutions and has to be downloaded manually. If this is the case, will it affect any licensing issues?

EDIT 2 :
I have an Instance, let’s say, A, of the application open already. I try and launch an instance B. B sends a message to A.
Is it possible to check for certain conditions to be satisfied by A, using this message, and then the decision of whether to open B or not?

As such…

  1. A is already running
  2. B is now launched
  3. B sends a message to A
  4. A tries to confirm something using this message
  5. if message is true( let’s say), keep A running and open B as a new instance
  6. if not…close B, and let A use this new information to refresh data

Is this possible using QtSingleApplication, especially step 6 ? Or will a new instance close as soon as it detects an already running instance?

Also, how do I integrate QtSingleApplication within my application? Do I only need to include the header and cpp? I don’t wish to build a dll and work like that. Is there any other configuration required?

I’d be obliged if anyone could help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:22:50+00:00Added an answer on June 15, 2026 at 8:22 pm

    What you are looking for is QtSingleApplication. When you call the application a second time, you can check QtSingleApplication::isRunning() to see if another instance already exists. If it does, simply use QtSingleApplication::sendMessage() to alert the first instance that something has been called. Simply set up your application to be able to receive those messages (which you can be made aware of by connecting to the QtSingleApplication::messageReceived() signal), and react accordingly when you receive that signal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that I have designed and this app has a pretty
I have a web application running on Windows IIS. This app has a database
Assume i have a custom Windows application written in C#. This application has only
I have a C# Windows Form application that contains a menu with this event:
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
I have a Windows Form Application in which clicking certain buttons create objects from
I have a non document-based Core Data application. There's an NSTreeController that manages a
I'm writing an application draws in another application's window (this is under OS X
I have this application that relies extensively on Request.UrlReferrer for handling link clicks and
Working with Symfony2.0 and jQuery, I have a web application that in certain moment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.