Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I have C++ GUI programming using Qt . Here I have succesfully creating the user interface. Based on the picture above, I am supposed

Hi, I have C++ GUI programming using Qt.

Here I have succesfully creating the user interface.

image text in transcribed

Based on the picture above, I am supposed to draw a rectangle on the empty space in the right, during the GUI program run, by mouse click.

image text in transcribed

Drawing mechanism:

When the program is running, the main window GUI will appear. On the Mainwindow GUI, we will firstly click anywhere in the empty right board, but dont release it. While keep pressing the click, we drag to any direction to extend the rectangle. After that, we release it. Then, the rectangle will automatically be created. The Rectangle creation should be flexible, i.e. user must be able to create it from any of the 4 directions, either from top left to bottom right, bottom right to top left, top right to bottom left, or bottom left to top right. The illustration on figure below is the example of creating the rectangle from top left to bottom right:

image text in transcribed

Then, can any one help me how to achieve that in Qt?

Thank you

Best Regards

MainWindow File idea Board About Court ID GroupID MainWindow File Idea Board About Cochat ID Group (draw rectangle here, with mouse click, NOT with code) 0 1. MainWindow File Idea Board About ID GroupID Content Polygon Point 1 rec Point 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago

Question

6. Have you used solid reasoning in your argument?

Answered: 1 week ago