Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 Use Qt s model / view framework to store and display music CD information. The following information should be stored in the model
Question
Use Qts modelview 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
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
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 R 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 R
The user should be able to delete a row of data.
Here is an example of the interface.
Question
Write an application that uses regular expressions to check for telephone numbers and email addresses in a text file provided by a user. The following functionality should be included.
The user should be able to select the file to check using a standard file open dialog box.
The file should be displayed in the GUI.
The telephone numbers and email addresses should be highlightedemphasized in some way in the text.
An email address can be identified by a single @ symbol in the address; telephone numbers could be from any of the following formats:
You may assume that the email addresses and telephone numbers are free standing, that is they do not have brackets or any other character around them.
See an example below.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started