• Keine Ergebnisse gefunden

Exercise 9: An Application with Menues and Bars Winter Term 2011/12

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 9: An Application with Menues and Bars Winter Term 2011/12"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Exercise 9: An Application with Menues and Bars

Winter Term 2011/12

Most real-world application contain elements, such as a menus and various bars. This exercise shows how to program this in Qt.

Unit 1: Browse through the Qt class documentation of QMainWindow, and answer the fol- lowing questions:

1. What are the components of a fully-fleshed real-world application?

2. What are the basic methodsQMainWindowprovides for adding such compo- nents?

3. What classes does Qt provide for handling menues and bars?

Unit 2: Preparation: Create a QMainWindow-application that merely contains a label as its central widget. If you like, center the label. But please, do not waste more than 5 minutes on that task as its just optical sugar.

Unit 3: Extensions: Add a few menu points to the application’s menu bar, Then, you should add some entries to the menus you have just created. Furthermore, add some actions to the menu bar as well as to the menus. Compile and run your program. What is the effect of the action objects so far?

Unit 4: Building Connections: To take advantage of actions, they have to be connected to some (useful) slots. As a simple example, replace your central label with a cus- tomized label that provides a public slottrigger(). On slot’s invokation, the label should show up some text for a limited periode of time. After the time has expired, the text should vanish again. Connect the actions’ signals to the label’s slot.

Unit 5: Design: Use separators to optically divide menus from actions in the menu bar and all sub menus. What can be observed?

Have fun, Matthias and Ralf.

1

Referenzen

ÄHNLICHE DOKUMENTE

Mit skai® PureLux setzen wir, die Oberflächenspezialisten von Continental, jetzt auch bei PET den Maßstab: Edle Optik, beste funktionale Eigenschaften, zuverlässige Verarbeitung

Meerrettich G vegetarisch Zitronen-Chili-Mayo F,J,L vegan Kumin-Ketchup L vegetarisch FFM-Chimichurri vegan. Rouille

Pinot Noir du Valais AOC Bouquet : corsé, fruité, noble Palais : puissant, généreux, charnu, subtil, finesse veloutée Bouquet : Würzig, fruchtig, edel Gaumen : Kräftig, feurig,

Italian buffalo mozzarella, cherry tomatoes, rocket salat, olive oil, bread roll, butter Italienischer Büffelmozzarella, Kirschtomaten, Rucola, Olivenöl, Brot,

☛ As long as you are a minor (less than 18 years old) and have an Aufenthaltserlaubnis acording to the new residence right regulations (§ 25a Aufenthaltsgesetz), your parents and

We are pleased to accept Maestro and credit cards (Mastercard, Visa, American Express, Diners Club).. Offers valid as long as

Burger « El Andaluz » au Bœuf US „Black Angus“ avec manchego, poivrons grillés salade d’herbes sauvages, sauce chipotle, pommes de terre et salade de tomates El Andaluz Burger

Salade d’hiver, potiron mariné, noix de Grenoble et ch ips de pain Winterliche Blattsalate mit mariniertem Kürbis, Baumnüsse und Brotchips oder/ou.. Filet de loup de mer sauté et