ckw089
27th November 2010, 12:08
Hi,
I am new in Qt programming. I would like to create an application that is similar to those applications used to draw UML diagram, but my application is not really drawing UML diagram.
My application is to enable user to drag and drop different "nodes", and use lines to connect all these "nodes" to form a tree kind of structure. For each tree, there will be a root node, form root the tree will branch out, at the bottom will be all the leave nodes.
I know Qt supports drag and drop. And I probably can use QListView to display all the possible "nodes" for user to select from. I just not sure which QWidget is suitable for the drop site, where user is free to move and locate the nodes, and then connect them together with lines to build a tree.
rgds,
kc Wong
I am new in Qt programming. I would like to create an application that is similar to those applications used to draw UML diagram, but my application is not really drawing UML diagram.
My application is to enable user to drag and drop different "nodes", and use lines to connect all these "nodes" to form a tree kind of structure. For each tree, there will be a root node, form root the tree will branch out, at the bottom will be all the leave nodes.
I know Qt supports drag and drop. And I probably can use QListView to display all the possible "nodes" for user to select from. I just not sure which QWidget is suitable for the drop site, where user is free to move and locate the nodes, and then connect them together with lines to build a tree.
rgds,
kc Wong