0% found this document useful (0 votes)
5 views

qt

Uploaded by

Suba S M
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

qt

Uploaded by

Suba S M
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 30

DAILY WORKING

PROGRESS REPORT

,U.THIRUMURUGAA
Introduction of QT creator

• Qt Creator is like a special toolbox for building computer


programs.
• It's designed especially for making apps using Qt, which is a
set of tools for creating all sorts of software.
• With Qt Creator, you get everything you need in one place:
a place to write your code, tools to help you design what
your app will look like, and ways to test and fix any
problems.
• It's like having a workshop where you can build your apps
from start to finish.
Quasar Technologies (QT)

What is QT creator ?

• Qt Creator is a cross-platform C++, JavaScript, Python and QML


integrated
• And development the environment in which simplifies GUI application
development.
• It is part of the set of platform-specific building tools for developers. for
the Qt GUI application development
Uses of QT creator

• The Qt is used for developing graphical user interface and multi-platform


applications that run on all major desktop platforms and mobile or embedded
platforms.
• The Qt framework contains a comprehensive set of highly intuitive and
modularized C++ library classes and is loaded with APIs to simplify your
application development
Feature of QT creator:
• Code Editor:
Qt Creator provides a powerful code editor with features like syntax highlighting, code
completion, code navigation, and refactoring tools, making it easier for developers to write and
manage their code efficiently.
• Project Management:
It offers project wizards and templates for creating new Qt projects, as well as tools for
managing existing projects. Developers can easily organize their project files and dependencies
within the IDE.
• Integrated Debugging:
Qt Creator comes with a built-in debugger that allows developers to debug their
applications directly within the IDE. It supports features like breakpoints, stepping through code,
inspecting variables, and examining the call stack.
• Plugin System: It features a plugin system that allows developers to extend the functionality
of Qt Creator by adding custom tools, language support, or other features tailored to their
Modules for 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

• Qt is used for developing graphical user interfaces


(GUIs) and multi-platform applications that run on all
major desktop platforms and mobile or embedded
platforms.
• Most GUI programs created with Qt have a native-
looking interface, in which case Qt is classified as a
widget toolkit.
Qt Helps
• The Qt help system includes tools for
generating and viewing Qt help files.
• In addition, it provides classes for
accessing help contents program to be
able to integrate online help into Qt
applications.
Widgets

• Visible user interface component


• Shorthand for window gadget
• Buttons, menu, frames, sliders, are all widget
• Widget can contain other widgets
Flow chart of widgets

Q Object

Q widget
Q Core application Q Layouts

Q Application Q Box Layouts

QHbox layout

Q Abstract Button QAbstract Spinbox QAbstract Slider QFrame

QPush Button QSpin box QSlider QLabel


Qt Virtuous cycle
Modules and include files

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

int arr [5]; //Declaration of array

int arr [5] = {1, 2, 3, 4, 5};


STRINGS in C++
• The std::string` class represents sequences of characters,
offering dynamic resizing and a rich set of functions for
efficient manipulation, enhancing safety and flexibility in
handling textual data.

#include<string> \\ header class


String word=“hello”;
Strings

C++ provides various member functions to manipulate strings, such as.


* append()
* substr()
* find()
* length()
STACK ​
• Stacks are a type of container adaptors with LIFO(Last In First
Out) type of working, where a new element is added at one end
(top) and an element is removed from that end only.​
Syntax:
stack< int> my Stack;​
• It provides member functions for various operations on
the stack , such as:​
Push - Adds an element to the top of the stack. ​
Pop - Removes the top element from the stack.

Top - Returns a reference to the top element of the


stack.
Empty - Checks if the stack is empty.​
Size - Returns the number of elements in the stack​
REFERENCE AND POINTER​
Reference Pointer

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

Access Modifiers or Access Specifiers in a class are used to assign


the accessibility to the class members, i.e., they set some restrictions on the
class members so that they can’t be directly accessed by the outside functions.​

There are 3 types of access modifiers available in C++: ​
Public​
Private​
Protected​

THANK YOU

You might also like