Interface development
2015-09-22 Presentation + Hello in QT
- pr00.tar.gz --> Hello in QT
2015-09-23 Sending text with QtDebug
- pr01b.tar.gz --> Closes the QT window and explanation of the three methods, private, public, and protected.
- pr01c.tar.gz --> Added a box to write and send it via terminal with a button or with the backspace key (different application than pr01.tar.gz from binefa)
- pr01.tar.gz --> Closes the QT window
- pr01b.tar.gz --> Sends a message via terminal using a button
- pr01c.tar.gz --> Sends the message via terminal pressing enter or a button
- pr03_0-99 --> Slider that moves LCD from 0 to 99.
- pr03_0-1000 --> Slider that moves LCD from 0 to 1000.
- pr03-1000-1000 --> Slider that moves LCD from -1000 to 1000.
- pr03_ALL --> The three previous ones applied in the same program.
- pr02a.tar.gz --> Connect function with Slot to send text. (preview of pr01c)
- Example01.cpp --> Creation of .cpp with geany, adding #include
<QCoreApplication>.
- t00Qt5.pro --> Adds QT += widgets to the .pro, created with qmake -project.
- Binefa
- To compile:
- qmake -project
- qmake
- make
- ./Arxiu
- Console01 --> Shows "console application\n" in the console
- Console02 --> Shows "console application\n" in the console
- File --> Creates a file that says "You make me want to be a better man."
- szerelem --> Reads a file named szrelem.txt in UTF8.
- szerelem2 --> The same with pointers.
- szerelem3 --> Another way to place the pointer.
- aSeques --> Shows "console application".
- console02 --> Shows "console application" with QTextStream.
- fitxer00 --> Creates a file that says "You make me want to be a better man."
- fitxer01 --> Creates a file, but in this case uses pointers.
- intl00 --> Reads a file named szrelem in UTF8.
- intl01 --> The same with pointers.
- intl02 --> Possible adaptation for Windows.
- mlist_00.cpp --> File extracted from zetcode.
- mlist_01.cpp --> File without using out. Using Debug.
- mlist_02.cpp --> Fixed extra blackspace.
- mlist_03.cpp --> New Class CNum
- mlist_04.cpp --> Added pointers and constructor overloading.
- To make it output to the Windows console, in the .pro file you have to add CONFIG += console.
- Exercici.zip --> Creates constructors and they are destroyed when finishing the program.
- mlist2.cpp --> Equivalent to my own mlist_02.cpp.
- mlist2_00.cpp--> Equivalent to mlist_03.cpp.
- mlist2_01.cpp --> The same with pointers.
- mlist2_02.cpp --> The same but with a constructor overload to pass the desired value.
- mlist2_03.cpp --> It will say that int CNum::x is protected when trying to modify the variable directly; therefore, int x will be modified to public so it can work. Here we can observe how a protected number cannot be accessed from anywhere. Finally equivalent to mlist_04.cpp.
- mlist2_04.cpp --> The same, but in class there is only the declaration, and separately the methods, constructors, destructors... are defined.
- mlist2_05.zip --> Splits the files main.cpp, class.cpp (cnum.cpp), and class.h (cnum.h). Now it will include #include "cnum.h". Usually, defines are found in the .h file.
- roti.zip --> Solution to Exercici.zip, creates constructors and they are destroyed when finishing the program.
- roti04 --> Shows inheritances across different files.
- Polymorphism: You can use things that belong to parent classes...
- roti02 --> Use of the overloaded function vDiguesValorAtributs to state the attribute values.
- roti03 --> Shows inheritances across different files.
- roti04 --> Shows inheritances across different files.
- pr03.zip --> Used in nova.zip, slider 0-99.
- nova.zip --> Integrates two Widgets into the same QT program
- Exercise_01 from the exam.
- Rellotge_00 -> Shows time in LCD
- Rellotge_01 -> Updates itself.
- Original page: http://zetcode.com/gui/qt4/strings/
- 2015-10-14_ALL --> Downloads the compressed file.
- center.cpp --> Centered window. Visit 2015-09-30 to learn how to compile.
- tooltip.cpp --> If you hover over the window, it will show information.
- icon.cpp --> Icon in the window, does not work...
- cursors.cpp --> --> Different types of cursors.
- pushbutton.cpp --> Closes the application when you click the button.
- plusminus.h, plusminus.cpp, main.cpp --> adds or subtracts from a number using buttons.
- absolute.cpp --> Absolute position:
- The size and position of a widget do not change if you resize a window.
- Applications look different (often bad) on different platforms.
- Changing fonts in our application could break the layout.
- If we decide to change our layout, we have to completely redo our layout, which is tedious and slow.
verticalbox.h, verticalbox.cpp, main.cpp --> Adding widgets vertically. buttons.h, buttons.cpp, main.cpp --> Buttons adapted to the window. layouts.h, lyouts.cpp, main.cpp --> Shows a selectable list with 4 buttons. form.h, form.cpp, main.cpp --> QFormLayout is a simple layout manager that handles forms of input widgets and their associated labels. It presents its children in a two-column form. The left column consists of labels and the right column consists of input widgets like QLineEdit or QSpinBox.
- Files and directories
- First programs:
- cursors.cpp --> Creates three frames and changes the cursor when hovering over.
- icon.cpp --> Changes the application icon.
- mesMenys.zip --> There are two buttons; clicking plus adds one, clicking minus subtracts one.
- pushButton.cpp --> Button in the middle that closes the application.
- SimpleMenu.zip --> Creates a menu in the toolbar that closes the application when you click quit.
AnotherMenu.zip--> Adds New and Open (which do nothing), a separator bar, and quit which closes it.
Suma_Resta.zip (With QT)--> Performs addition with &+ and &-, made with qt. menu03.zip
- checkable.zip --> Creates a status bar that shows whether it is clicked or not.
toolbar.zip --> Generates the toolbar without a menu. skeleton.zip --> You have a toolbar with the option to close and you have both icons on the toolbar, with a close one as well that closes the application. Binefa
- Buttons--> You have two buttons that resize depending on how you move the window.
- Form--> Forms with email through focus...
- Layouts--> Shows a list of names with four icons.
- Verticalbox_01 --> VerticalBox with buttons and space between the different buttons.
- Binefa
- Email.cpp
- form_01--> Form with the email pattern.
- QMouseEvent exercise.
- Disconnect_00--> A button and a checkbox, if the textBox is selected the button can be pressed and a message will be output to the terminal.
- Keypress_00--> If you press Esc, the application closes.
- label_00--> Label with a txt inside and a font that needs to be downloaded.
- move_01--> Takes the tab coordinates and puts them in the application title.
- slider --> Two Sliders that, when moved, set their value in a label.
- examen06--> Decides whether what you wrote goes right or left.
- listwidget--> Shows the list with names and the buttons are functional, you can add, delete...
- 25_pixmap_05_noVa--> An image viewer.
- 28_gifAnalyzer_02 --> Gif of a Penguin.
- 28_gifAnalyzer_04 --> Gif of a Planet, when you press stop it changes...
- colours--> Shows colored rectangles.
- donut --> Takes from the center and draws circles with paintEvent using an ellipse.
- lines --> Draws lines of different types.
- 32_dib_02--> Places the figure and keeps changing the angle.
- 32_dib_03--> Places the figure and keeps changing the angle, with the angle in a text.
- 32_dib_04_tecles--> Creates a slider that changes the drawing position and displays the angles of the figure.
- Ex1 (etWidget)
- Ex2 (etWidget)
- Ex3 (etWidget)
- Ex4 (etWidget)
- Binefa
- Exam.
Proposals:
Hovering --> which changes the statusbar when you pass over the toolbar.
Central widget that we already have.
next day:
emit
Format calc so that it comes out right-aligned and pressing enter works like pressing equals.