|
@@ -280,13 +280,14 @@ In this exercise you will familiarize yourself with the `Bird` class and with so
|
280
|
280
|
|
281
|
281
|
#### Instructions:
|
282
|
282
|
|
283
|
|
-1. Download the `objects-birds` folder from `Bitbucket` using a terminal, moving to the `Documents/eip` directory, and writing the command `git clone http://bitbucket.org/eip-uprrp/objects-birds`.
|
|
283
|
+1. Load the project `Birds` into `QtCreator`. There are two ways to do this:
|
284
|
284
|
|
285
|
|
-2. Load the `Birds` project onto Qt by double clicking on the `Birds.pro` file in the directory `Documents/eip/objects-birds` of your computer. Configure the project.
|
|
285
|
+ * Using the virtual machine: Double click the file `Birds.pro` located in the folder `/home/eip/labs/objects-birds` of your virtual machine.
|
|
286
|
+ * Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/objects-birds` to download the folder `objects-birds` from `Bitbucket`. Double click the file `Birds.pro` located in the folder that you downloaded to your computer.
|
286
|
287
|
|
287
|
|
-3. Study the `Bird` class contained in the `bird.h` file. Identify the methods that are constructors, setters and getters.
|
|
288
|
+2. Study the `Bird` class contained in the `bird.h` file. Identify the methods that are constructors, setters and getters.
|
288
|
289
|
|
289
|
|
-4. In the `main.cpp` file (in Sources) the `main` function does the following:
|
|
290
|
+3. In the `main.cpp` file (in Sources) the `main` function does the following:
|
290
|
291
|
|
291
|
292
|
a. Creates a Qt object application, called `a`. The only thing you need to know is that thanks to this object we can create a graphical application in Qt and interact with it.
|
292
|
293
|
|
|
@@ -298,7 +299,7 @@ In this exercise you will familiarize yourself with the `Bird` class and with so
|
298
|
299
|
|
299
|
300
|
e. In programs that don't have a graphical interface, the `main()` function usually ends with the instruction `return 0;`. In this project, the `return a.exec();` instruction is used so that the object `a` takes charge of the application from that moment on.
|
300
|
301
|
|
301
|
|
-5. Execute the program by clicking on the green arrow in the left menu on the Qt Creator window. The program should display a blank window.
|
|
302
|
+4. Execute the program by clicking on the green arrow in the left menu on the Qt Creator window. The program should display a blank window.
|
302
|
303
|
|
303
|
304
|
### Exercise 2 - Create objects of the `Bird` class with certain attributes
|
304
|
305
|
|