GUI Issues

D

diffuser78

Hi,

I want to create a GUI where a user can select drag and drop kind of
boxes, circles and make connections between them. This is NOT for
drawing picture like MS paint but I want to model state and transitions
between them.

This is basically for depicting states and dependencies. I am writing a
program where I let the user input states and dependencies in a certain
domain. Based on input given by user in the GUI (by letting him drag
and drop), I grab it and run my algorithm to generate the output.

I am wondering if there is any library like that in C++/Python , or if
anybody of you has done something similar in past, could you post some
pointers.

Every help is greatly appreciate,

many thanks
 
V

Victor Bazarov

I want to create a GUI [...]

I am wondering if there is any library like that in C++/Python , or if
anybody of you has done something similar in past, could you post some
pointers.

Qt is your friend: www.trolltech.com

Also, look for 'Available C++ Libraries FAQ' post appearing here every
month or so, posted by Nikki Locke.

Next time please ask about GUI in a newsgroup for your platform since
most of GUI stuff is platform-specific. Even though there are libraries
like Qt that are ported to more than one platform, GUI is still not a C++
language feature and as such is basically OT here.

V
 
P

Phlip

diffuser78 said:
I want to create a GUI where a user can select drag and drop kind of
boxes, circles and make connections between them. This is NOT for
drawing picture like MS paint but I want to model state and transitions
between them.

That's exactly what the sample I pointed you to works. Did you try them?
I am wondering if there is any library like that in C++/Python

You can do the exact same thing in Python with Tkinter. The point of the
exercise is a smart canvas that treats graphical primitives as objects, and
a geometry system like GraphViz that lays out nodes and edges properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top