qt
qt
PROGRESS REPORT
,U.THIRUMURUGAA
Introduction of QT creator
What is QT creator ?
• QT Designers
• Qt Gui tools
• QT Helps
• Qt Test
QT Designers
• Qt Designer enables you to quickly build the GUI of your
main windows using the predefined Main Window template.
• Once you've created a form based on that template, you'll have
tools to perform the following actions: Creating a main menu.
• Adding and populating toolbars.
QT Gui tools
Q Object
Q widget
Q Core application Q Layouts
QHbox layout
Qt object model
* Q Object
* Q Widget
* Variants
Q Object
• Memory nanagement
• Object properties
• Signals amd slotes
• Even handling
Q widget
• The Q Widget class is the base class of all user interface objects.
• The widget is the atom of the user interface: it receives mouse, keyboard
and other events from the window system, and paints a representation of
itself on the screen.
• Every widget is rectangular, and they are sorted in a Z-order.
THANK YOU
PROGRAMMING IN MODERN
C++
Introduction c ++
• C++ supports both procedural and object oriented
programming
• Function and operator overloading is supported by C++.
• Data is hidden by the Encapsulation to ensure that data
structures and operators are used as intended
• C++ supports inheritance.
• C ++ structures have access modifiers.
• Virtual and friend functions are supported by C++.
Arrays in c++
• An array is a fixed-size collection of
elements of the same data type
stored in contiguous memory
locations.
• syntax
Reference: Pointer:
A reference variable is a "reference" to A pointer is a variable that stores
an existing variable, and it is created with the memory address of another variable.
the & operator: Pointers allow indirect access to memory
Syntax; locations, enabling manipulation of data and
int x = 10; dynamic memory allocation.
int & ref = x; // ref is a reference to x Syntax;
int x = 10;
int* ptr = &x; // Initializes ptr with the
address of x
FUNCTION
• Functions are fundamental building blocks of C++ programs, allowing code to be
organized into modular and reusable units
SYNTAX:
<Return_type > Functreturn_type function_name(parameter_list) {
// Function body
}
Default Argument
Program:
#include <iostream>
Using namespace std;
void greet(string name = "World") {
cout << "Hello, " << name << "!" <<endl;
}
int main() {
greet();
greereturnt("Alice");
0;
}
Output :
Hello World
Hello Alice
Function Overloading
Definition:
Function overloading in C++ allows you to define multiple functions with the same name but different parameter
lists
Program: int main() {
#include <iostream> cout << "Sum of integers: " << add(3, 5)
int add(int a, int b) { << endl;
return a + b; cout << "Sum of doubles: " << add(3.5, 2.5)
} <<endl;
double add(double a, double b) { cout << "Sum of three integers: "<< add(1, 2,
return a + b; 3) << endl;
} return 0;
int add(int a, int b, int c) { }
return a + b + c;
}
CLASSES AND OBJECTS
Classes:
It is a user-defined data type, which holds its own data members and
member functions, which can be accessed and used by creating an instance of that
class
A C++ class is like a blueprint for an object.
Objects:
An object in C++ is an instance of a class.
When class is define, no memory is allocated but when an (object is
created ) memory is allocated.
Program:
Example :
Output:
Name: John, Age: 30
class Person {
public:
string name;
int age;
};
int main() {
Person person1;
person1.name = "John";
person1.age = 30;
cout << "Name: " << person1.name << ", Age: " << person1.age << endl;
return 0;
}
Access Specifiers