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 8491903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:33:56+00:00 2026-06-10T22:33:56+00:00

I need to write a C++ GUI such that user can make a flowchart

  • 0

I need to write a C++ GUI such that user can make a flowchart / pipeline by selecting several blocks from a toolbar and putting them into a window and connecting them in some order which he wants and then program runs the flowchart. (For simplicity just consider each block’s task is to print some number. My problem is GUI)

Does anyone ever try a similar thing / any experience?

Is it possible to make such a GUI in WxWidget or any other Graphics/Window-form library?

Is it possible to use VTK to make the GUI?

Do you know of any similar open source work?

  • 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-10T22:33:58+00:00Added an answer on June 10, 2026 at 10:33 pm

    I have developed several apps with GUIs that do this sort of thing.

    The one I am most pleased with is called VASE: A GUI used to create the layout, set parameters and view results of a process flow simulator.

    enter image description here

    It is not a trivial task, though once you have done one or two, there are many ideas that you can reuse and it goes quickly.

    The two biggest challenges drawing the lines connecting the objects ( as you can see, even in VASE, this problem is not completely solved ) and storing that layout in a format that can be easily recovered and redrawn.

    Is there any particular issue you need help with?

    If you want a really, really, simple example to get you started I have re-implemented a couple of basic features ( all nice and clean, no copyright restrictions ) – left click to select, drag to move, right click to connect.

    Here is the source code repository – http://66.199.140.183/cgi-bin/vase.cgi/home

    Here’s what it looks like

    enter image description here

    I have implemented a simplified connector, which I call a pipe. To give you a flavour of how to do this kind of stuff, here is the code to add a pipe when the user right clicks

    /**
    
      User has right clicked
    
      If he right clicks on a flower
      and there is a different flower selected
      then connect the selected flower to the right clicked flower
    
      if he right clicks on empty background
      create a new flower
    
    */
    void cVase::MouseRightDown( wxMouseEvent& event )
    {
        // find flower under click
        iterator iter_flower_clicked = find( event.GetPosition() );
    
        // check there was a flower under click
        if( iter_flower_clicked != end() ) {
    
            // check that we have a selected flower
            if( ! mySelected )
                return;
            // check that selected flower is different from one clicked
            if( mySelected == (*iter_flower_clicked) )
                return;
            // construct pipe from selected flower to clicked flower
            myPipe.push_back(cPipe( mySelected, *iter_flower_clicked ));
    
        } else {
    
            // no flower under click
            // make one appear!
            cFlower * pflower  = Add();
            pflower->setLocation( event.GetPosition() );
        }
        // redraw everything
        Refresh();
    }
    

    And here is the code to draw a pipe

    /**
    
     Draw the pipe
    
     From starting flower's exit port to ending flower's entry port
    
    */
    void cPipe::Paint( wxPaintDC& dc )
    {
        dc.SetPen( *wxBLUE_PEN );
        dc.DrawLine( myStart->getExitPort(), myEnd->getEntryPort() );
    }
    

    You can see the rest of the wxWidgets code that ties all this together by browsing the source code repository.

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

Sidebar

Related Questions

I need to write a simple Java GUI application that, basically, allows the user
I need to write a gui in Tkinter that can choose a csv file,
I need to write cross-platform GUI application, what toolkit can I use? Currently I
I need to write an app with a GUI interface that works on Windows
I need to write a simple terminal-based program that should, Read some text from
I might need to write some GUI application that runs on .Net (and Windows),
I need to write a script in Matlab, which will read some data from
I need to write a C++ code coverage program that takes in another C++
I need to write a program that prints 0.(03) for input 1 and 33.
I need to write a GUI related javascript library. It will give my website

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.