Question: Question 1 Write classes ( as necessary, remembering to avoid any anti - patterns ) that will manage software review data. The data itself consists

Question 1
Write classes (as necessary, remembering to avoid any anti-patterns) that will manage software review data. The data itself consists of
the name of the software,
the date of the review, and
an indication of whether it is recommended or not.
You should create a graphical user interface that allows a user to enter the data. Data should be stored in an appropriate container (allowing for several reviews to be recorded), and be printed to a console window when required.
Test your code by adding at least 3 pieces of data. Below is an example of a possible interface.
Question 2
Extend Question 1 so that it uses reflective programming techniques to access the data members of the object that holds the review data. Write another display function that does not use any public accessor functions (or a toString) function) to get access to the review data. Also add a button to display the review detail to the application window (so that the program now can print to the console or GUI window).
When displaying the data to the application window, you cannot assume that you know beforehand how many properties there are, what they are called, or of what type they are. You need to loop through the properties and using reflective programming techniques, display the data to the application window.
HINT: You will need to use QVariant.
Question 3
Use Qt's model/view framework to store and display music CD information. The following information should be stored in the model (a QStandardItemModel):
composer,
album name,
replacement value, and
a rating (out of 100).
The information should be displayed in a table.
The following functionality should be included.
There should be a header row.
The user should be able to add rows of data to the model.
The replacement value should always display the cents (even as .00).
Use a delegate to display the rating as a horizontal bar. This column should take up all the remaining space available.
The user should be able to sort the data by clicking on the column header on which the sorting should be implemented.
Where the replacement value is greater than or equal to R200, the row should be made a different colour. Note that this colour should also change if the user edits a replacement value (and it should return to the normal colour if the value drops below R200).
The user should be able to delete a row of data.
Here is an example of the interface.

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 Programming Questions!