Interface development

2015-09-22 Presentation + 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)
  • pr01b.tar.gz --> Sends a message via terminal using a button
  • pr01c.tar.gz --> Sends the message via terminal pressing enter or a button

2015-09-29

  • pr03_0-99 --> Slider that moves LCD from 0 to 99.
  • pr03_ALL --> The three previous ones applied in the same program.
  • pr02a.tar.gz --> Connect function with Slot to send text. (preview of pr01c)

2015-09-30

  • Example01.cpp --> Creation of .cpp with geany, adding #include <QCoreApplication>.
  • t00Qt5.pro --> Adds QT += widgets to the .pro, created with qmake -project.
  • Binefa

2015-10-01

  • 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.
  • 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.

2015-10-06

  • 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_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.

2015-10-07

  • 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

2015-10-08

2015-10-13

2015-10-14

2015-10-15

  • 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.

2015-10-17 e

  • icon.cpp --> Icon in the window, does not work...

2015-10-18 e

  • 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.

2015-10-20

  • Files and directories
  • First programs:

Binefa

  • 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.

2015-10-21

  • 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

Binefa

2015-10-22

  • 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

2015-10-27

  • 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

2015-10-28

  • form_01--> Form with the email pattern.

2015-10-29

2015-11-03

  • 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.

2015-11-04

20151105

  • slider --> Two Sliders that, when moved, set their value in a label.

20151110

  • 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...

20151111

20151112

20151117

  • 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.

20151118

  • 32_dib_04_tecles--> Creates a slider that changes the drawing position and displays the angles of the figure.

20151119

20151124

20151125

20151126

20151201

20151203

  • Binefa

20151203

20160119

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.