1. 2 Qt Toolkit ● C++ toolkit for cross-platform GUI application development – GUI functions (GUI = graphical user interface) – Data access components,

Slides:



Advertisements
Similar presentations
First Steps with Qt Julien Finet Kitware Inc. Jan. 05 th 2010.
Advertisements

COMPUTERS: TOOLS FOR AN INFORMATION AGE Chapter 3 Operating Systems.
 An operating system (OS) is a set of computer programs that allow the user to perform basic tasks like copying, moving, saving and printing files. 
Lecture 4: Embedded Application Framework Qt Tutorial Cheng-Liang (Paul) Hsieh ECE 424 Embedded Systems Design.
QT GUI Programming CS340 – Software Design © 2009 – Jason Leigh University of Illinois at Chicago.
Dale Roberts Introduction to Visual Programming Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and.
Chapter 5 Operating Systems. 5 The Operating System When working with multimedia, the operating system is perhaps the most important, the most complex,
Linux vs. Windows. Linux  Linux was originally built by Linus Torvalds at the University of Helsinki in  Linux is a Unix-like, Kernal-based, fully.
Linux Qt Graphical User Interface (GUI) Development In this session, we will cover Qt GUI development tools including: Qt Creator for remote debug and.
QT Intro. 김기형
L8: Qt4 Concept Qt Module QObject QObject Model Signal and Slot Qt Event Loop.
LAMAD Symbian Qt install and deploy Installing Qt SDK and deploying Qt applications.
Cross-platform approach to create the interactive application based on ROOT and Qt GUI libraries Rene Brun (CERN) Valeri Fine (BNL,
Oct ROOT 2002, CERN, Geneva Qt-Based Implementation of Low Level ROOT Graphical Layer By V.Fine.
Qt Igor November 8, 2002 Friday’s HENP Group Meeting.
Linux GUI Chapter 5. Graphical User Interface GUI vs. CLI Easier and more intuitive More popular and advanced Needed for graphics, web browsing Linux.
Software GCSE ICT.
Blanchette and Summerfield, Ch. 2
Josh Kilgore Obi Atueyi Tom Calloway Ye Tian 1 Software Engineering Spring 2010.
Cross-platform GUI Frameworks for 3D Apps and Games: Qt vs wxWidgets
Bertrand Bellenot ROOT Users Workshop Mar ROOT GUI Builder Status & Plans ROOT & External GUI World MFC, FOX, Qt, PVSS… Snapshot of the Future.
Introduction to OpenGL and GLUT GLUT. What is OpenGL? An application programming interface (API) A (low-level) Graphics rendering API Generate high-quality.
Section 2 Software.
FLTK Tutorial.
Chapter 4 System Software. Software Programs that tell a computer what to do and how to do it. Sets of instructions telling computers to perform actions.
1 Implementation support chapter 8 programming tools –levels of services for programmers windowing systems –core support for separate and simultaneous.
Using Qt for GUI development Brad Whitlock March 2002.
1 Chapter 12 GUI C/C++ Language Programming Wanxiang Che.
Dale Roberts Introduction to Visual Programming Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and.
Introduction to OpenGL and GLUT. What’s OpenGL? An Application Programming Interface (API) A low-level graphics programming API – Contains over 250 functions.
GUI With GTK+ Under Linux Fanfan Xiong. Introduction GTK+ (GIMP toolkit) : A library for creating graphical user interfaces(GUI) Two examples developed.
Creating a Qt Widget Based Application From Qt Creator Manual.
-1- National Alliance for Medical Image Computing First Steps with Qt Julien Finet Kitware Inc. Jan. 05 th 2010.
QT Programming QT Programming Ruku Roychowdhury. Background QT is a cross platform application framework. Widely used to develop GUI applications. Originally.
9-Nov-97Tri-Ada '971 TASH An Alternative to the Windows API TRI-Ada ‘97 Terry J. Westley
GNOME, KDE and X Windows. The GNOME Project was started in 1997 to produce a free (as in freedom) desktop environment. GNU Network Object Model Environment.
. The ideas behind Qt and a live demo Qt in Education.
GUIs Basic Concepts. GUI GUI : Graphical User Interface Window/Frame : a window on the screen Controls/Widgets : GUI components.
Linux History C151 Multi-User Operating Systems. Open Source Programming Open source programming: 1983, Richard Stallman started the GNU Project (GNU.
QT – Introduction C++ GUI Programming with Qt 4
Lecture 10 Using Interface Builder to create Mac Applications.
CHANGING THE VOLUME Click the volume icon in the bottom right hand corner of the screen.
OPERATING SYSTEM BY KINSHUK RASTOGI. WHAT IS AN OPERATING SYSTEM? What is an operating system in the first place? An operating system is a software that.
Dale Roberts Programming with Qt Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and Information Science,
July FLTK The Fast Light Toolkit • A C++ graphical user interface toolkit • Can be used under X, Windows, MacOS • Supports OpenGL • Provides: – Interactive.
Chapter 2 Operating Systems
Chapter 5 Operating Systems.
CSC 222: Object-Oriented Programming
Eclipse.
Mobile Application Development with MeeGo™ - Touch Apps & UI Design
Mark Redekopp David Kempe
HCI/CHI: Computer-Human Interaction
Jonathan Riddell Canonical Kubuntu Ubuntu KDE
Introduction to Operating System (OS)
QT graphical user interface framework
What is an operating system?
Event Driven Programming
Mobile Application Development with MeeGo™ - Programming with SDK
Qt Programming.
Chapter 2: System Structures
COMPUTER SOFT WARE Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called.
The Designer.
GTK + Programming.
The Basic Usage and The Event Handling in Glade.
Chapter 2: Operating-System Structures
A multi-platform GUI-building program
Go4 GUI and GSI's QtROOT interface
Go4 GUI and GSI's QtROOT interface
ACM programming contest
A multi-platform GUI-building program
Presentation transcript:

1

2 Qt Toolkit ● C++ toolkit for cross-platform GUI application development – GUI functions (GUI = graphical user interface) – Data access components, network connections, process management ● Portability across Microsoft Windows, Mac OS X, Linux, all major commercial Unix variants ● Developed by the company Trolltech – ● The basis of many thousands of successful applications worldwide (eg. KDE) ● Released in different editions – The Qt Commercial Editions - for commercial software development – The Qt Open Source Editions - for the development of Free and Open Source software only (GNU General Public License)

3 Logical Layers ● Qt is a layer on the top of the native graphics of the target machine.

4 Signals and Slots... ● Communication mechanism between the Qt components ● A signal is emitted when a particular event occurs. – Qt's widgets have many predefined signals, but we can always subclass widgets to add our own signals to them. ● A slot is a function that is called in response to a particular signal. – Qt's widgets have many pre- defined slots, but it is common practice to subclass widgets and add your own slots.

5... Signals and Slots ● Example - DrawQt Click on the button “ellipse” ● When you click on the button: – The button sends the signal “clicked” – This signal is connected to the method "ClickEllipse()" – The method "ClickEllipse()" is executed

6 Signal and Slots Definition #include “MyClass.h” … // Emit the signal event() emit(event());... // Connect event() signal with // action() slot connect(myClass, SIGNAL(event(), myClass, SLOT(action());... File MyClass.cxx #include class myClass : public QObject { Q_OBJECT … signals: void event(); … public slots: void action(); … }; File MyClass.h

7 Meta-Object Information ● The meta-object compiler (moc) parses the class declaration in a C++ file and generates C++ code that initializes the meta-object. ● The meta-object contains the names of all the signal and slot members, as well as pointers to these functions. myClass.h myClass.cxx moc_myClasse.cpp moc myClass.o g++

8 Qt Designer ● A tool for designing and building graphical user interfaces (GUIs) from Qt components – It allows you to design and build widgets and dialogues using on-screen forms using the same widgets that will be used in your application. – Components created with Qt Designer can also take advantage of Qt's signals and slots, and they can be previewed so that you can ensure that they will look and feel exactly as you intended. ● The user-interface compiler (uic) reads a user interface definition (.ui) file in XML as generated by Qt Designer and creates corresponding C++ header or source files. – It also generates an image file that embeds raw image data in C++ source code. Interface Description Save myFile.ui uic myFile.h

9 Qt Application #include int main(int argc, char* argv[]) { QApplication app(argc, argv); QPushButton hello("Hello world!"); hello.resize(100, 30); hello.show(); return app.exec(); } File main.cxx Create a Qt application Create a graphics button Resize the button Show the button Run the application (and wait for a signal)