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

  • SEARCH
  • Home
  • 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 7565661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:12:43+00:00 2026-05-30T14:12:43+00:00

I want to develop a Qt frontend for a program which needs to be

  • 0

I want to develop a Qt frontend for a program which needs to be usable from a command line as well. First, I thought of solving this with a parameter (if it is set, then UI will be created, else just write on std::out) but I’ve got the feeling that I should separate those components and just create the program for the backend logic ( using plain c++ if possible ). In which case the Qt program can read, and understand the output of the backend. Still if needed the backend could be run alone writing its results on std::out.

What’s the most elegant way to call the backend program from the frontend, without blocking?

My first thought on this was creating a child process and with exec, call the backend, then if the backend is finished, it should signal the frontend and block until frontend is done with reading, where reading could be done through a pipe or something like that.

Is this a good approach? Any other tips for implementation?

  • 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-05-30T14:12:44+00:00Added an answer on May 30, 2026 at 2:12 pm

    Qt has multiple features allowing for asynchronous execution:

    • The signal and slots : A more robust way of communicating than call-backs. You can use queued connection to trigger a slot later
    • Qt concurrent : Basically allow you to run some methods inside a thread-pool.
    • Check this list

    My thoughts would be to design the back-end as an API. Specifically, in each component you need an subset of objects (maybe just one) through which all communications with external component goes. Avoid putting too much logic inside the front end and avoid writing the back-end based on visual appearance. It is a bit vague :P.

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

Sidebar

Related Questions

I want to develop an ASP.NET application which will retreive the HOSTUUID from the
I want to develop one application which read text from the image. Which library
I want to develop simple Serverless LAN Chat program just for fun. How can
I want to develop an Android application which can run on all ,screen type
I want to develop a program that can hide a folder. Not a hidden
I want to develop a program for MCB1700 evaluation board. Client software of PC
i want to develop one desktop application using c# sql lite, this application i
I want to develop an chat application, in which I successfully added files of
I want develop an application on windows mobile. In this app, i need to
I want to develop a mailing list application that needs to be able to

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.