Question: Hi, I have C++ assignment using Qt. Here I have succesfully creating the user interface. My assignment from my professor : > draw shapes of

Hi, I have C++ assignment using Qt. Here I have succesfully creating the user interface.

Hi, I have C++ assignment using Qt. Here I have succesfully creating

My assignment from my professor :

> draw shapes of a circle at the right empty white space

> save the result in XML format

The process will be as follow:

the user interface. My assignment from my professor : > draw shapes

Explanation: when starting to draw circle, we will firstly click anywhere in the empty right board ("point 1"), but dont release it (keep pressing clickmouse). While keep pressing the click, we drag to any direction to extend the circle, then release it (at point 2). Then, the circle will automatically be created. (in the illustration above, click is at point 1, and release is at point 2, but at the actual program, the text point 1, point 2 do not exist; it is shown here to emphasize the position of mouse-click).

After the circle is created, a dialog should appear automatically, which ask user to enter name and description.

In the above illustration, I enter "Circle_01" as my name, and "My First Circle" for the description. After "OK" is clicked, on the right side (the drawing space), the Circle we created must shown withits Content Name and Content Description below the circle.

Final things, the program must be able to save in XML format:

of a circle at the right empty white space > save the

The procedure above are actually simple. But I am still not familiar with Qt.

Then, can any body help me how to do that in Qt?

Thank you

Best Regards

MainWindow File idea Board About Court ID GroupID Point 1 1. Add Content Content Name: Circle_01 Content Description My First Circle OK Cancel Point 2 MainWindow File Idea Board About Content ID GroupID Circle_01 About I MainWindow File Idea Board Save Load Exit Look in CCSD My Computer SH File name: test.xml Files of type: All Files ( Cancel Circle 01

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!