• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 8 páginas
Examen

COS 2614 assignment 3 solutions

Document preview thumbnail
Vista previa 2 fuera de 8 páginas

4.1 Question 1 The aim of this question is to expand your knowledge of Graphical User Interface programming by including menus on the user interface as well as using QActions for event handling. Some comments on this solution: • Each edit option (Bold, Underline and Italics) is included on the edit menu, where each option is added as a QAction. • In order to apply an edit option on a given text, firstly select the text in the text edit and then choose an edit option. • Event handling code for the edit options are grouped in the actionEvent()function. • Note that the text edit is a data member of the class, whereas the edit menu is just a local variable of the constructor. This is because we want to make the text edit accessible to the actionEvent() slot triggered by the menu options. 4 In general, it is better to keep as many widgets as possible as local variables of the constructor (or setupGUI() function), and only make those that need to be accessed by other slots and member functions, data members. • Note that the text edit provides an undo facility. This works, not only for typing, but also for formatting actions. Given below are two sample screen prints of the program while it is running: 4.2 Question 2 The aim of this question is to introduce you to the Qt class QMap. Given below is a screen capture of the output produced by the program when running: Some comments on this solution: • We have separated the class definitions and implementations of Textbook and TextbookMap into separate header and cpp files respectively. • Ezust did not provide an implementation of the Textbook class. So you had to implement Textbook according the given definition. • QMap only allows direct lo


Información del documento

Subido en
17 de septiembre de 2021
Número de páginas
8
Escrito en
2021/2022
Tipo
Examen
Contiene
Desconocido
$3.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Vendido
1416
Seguidores
669
Artículos
1140
Última venta
6 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.